* {
    box-sizing: border-box;
}

:root {
    --text: #ffffff;
    --text-muted: #cbd7f8;
    --blue: #64b4ff;
    --blue-light: #9bd2ff;
    --navy: #000817;
    --deep-navy: #010712;
    --card: rgba(3, 18, 48, .88);
    --border: rgba(155, 210, 255, .15);
    --danger: #ff9b9b;
    --success: #9ff0c0;
    --radius: 28px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(52, 129, 214, .20), transparent 28%),
        radial-gradient(circle at 85% 25%, rgba(100, 180, 255, .12), transparent 25%),
        linear-gradient(135deg, #000817, #010712 55%, #021b3f);
}

a {
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    padding: 16px 5%;
}

.auth-brand {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--blue)
        );
    border: 1px solid rgba(155, 210, 255, .25);
    color: #001021;
    box-shadow: 0 10px 35px rgba(100, 180, 255, .12);
}

.brand-name {
    font: 1.45rem Poppins, sans-serif;
    font-weight: 800;
    letter-spacing: -.8px;
}

.brand-name span {
    color: var(--blue);
}

.auth-shell {
    width: min(560px, 100%);
    margin: 8vh auto 40px;
}

.auth-card,
.account-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.auth-card {
    padding: 42px;
}

.auth-card.compact {
    width: min(520px, 100%);
    margin-inline: auto;
}

.auth-kicker,
.card-kicker {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 12px;
}

h1,
h2 {
    margin: 0;
    font-family: Poppins, sans-serif;
    letter-spacing: -.8px;
}

h1 {
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.08;
}

h2 {
    font-size: 25px;
    margin-bottom: 24px;
}

.auth-subtitle,
.account-header p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 14px 0 28px;
}

label {
    display: block;
    margin-bottom: 18px;
}

label > span {
    display: block;
    color: #edf5ff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

label em {
    color: var(--text-muted);
    font-style: normal;
    font-weight: 500;
}

input {
    width: 100%;
    border: 1px solid rgba(155, 210, 255, .17);
    outline: none;
    border-radius: 15px;
    padding: 14px 15px;
    background: rgba(0, 8, 23, .58);
    color: #fff;
    font: inherit;
    transition: .2s ease;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(100, 180, 255, .10);
}

input:disabled {
    color: #93a3bd;
    cursor: not-allowed;
}

small {
    display: block;
    color: #94a6c7;
    line-height: 1.5;
    margin-top: 7px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    border: 0;
    border-radius: 15px;
    padding: 15px 18px;
    font: 700 15px Inter, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn {
    color: #00101e;
    background: linear-gradient(135deg, #9bd2ff, #64b4ff);
    box-shadow: 0 14px 30px rgba(100, 180, 255, .18);
}

.secondary-btn {
    color: #fff;
    background: rgba(100, 180, 255, .10);
    border: 1px solid rgba(155, 210, 255, .20);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin: -4px 0 18px;
}

.form-row a,
.auth-footer a,
.account-back a,
.text-btn {
    color: var(--blue-light);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: #9eacc7;
    font-size: 14px;
}

.alert {
    border-radius: 15px;
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert.error {
    color: #ffd4d4;
    background: rgba(255, 75, 75, .08);
    border: 1px solid rgba(255, 120, 120, .22);
}

.alert.success {
    color: #caffdc;
    background: rgba(63, 210, 126, .08);
    border: 1px solid rgba(100, 240, 160, .20);
}

.otp-input {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 9px;
}

.otp-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    margin-bottom: 18px;
    background: rgba(100, 180, 255, .12);
    color: var(--blue-light);
    font-size: 24px;
}

.secondary-form {
    margin-top: 13px;
}

.text-btn {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

.account-shell {
    width: min(1080px, 100%);
    margin: 8vh auto 40px;
}

.account-header {
    margin-bottom: 28px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.account-card {
    padding: 30px;
}

.account-back {
    margin-top: 22px;
    text-align: center;
}

@media (max-width: 720px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .form-grid,
    .account-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .account-card {
        padding: 24px 20px;
    }
}
