/* Auth pages — same palette and type as the landing editorial design */
body.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans) !important;
    overflow-x: hidden;
    padding-top: var(--header);
}

body.auth-body,
body.auth-body input,
body.auth-body button,
body.auth-body select,
body.auth-body textarea,
body.auth-body .btn,
body.auth-body .form-control,
body.auth-body .form-label {
    font-family: var(--sans);
}

.auth-shell {
    flex: 1;
    width: 100%;
    margin: 2.5rem auto 3rem;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-aside {
    border-radius: var(--radius);
    padding: 2.25rem;
    background:
        radial-gradient(circle at 85% 12%, rgba(10, 140, 173, 0.16), transparent 42%),
        var(--sand);
    border: 1px solid var(--sand-2);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}

.auth-aside__chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--sand-2);
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .02em;
    margin-bottom: 1.1rem;
}

.auth-aside__chip i { color: var(--teal); }

.auth-aside h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.1rem;
    max-width: 20ch;
    color: var(--ink);
}

.auth-aside h1 em {
    font-style: italic;
    color: var(--teal-deep);
}

.auth-aside__lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
    max-width: 34ch;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .7rem;
}

.auth-points li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    border-radius: 16px;
    padding: .85rem;
    font-size: .9rem;
    font-weight: 650;
    color: var(--ink);
}

.auth-points i {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--teal-deep);
    display: grid;
    place-items: center;
    font-size: .9rem;
    margin-top: 0;
}

.auth-aside__foot {
    margin-top: 2rem;
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
}

.auth-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(18, 33, 43, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel__head {
    margin-bottom: 1.5rem;
}

.auth-panel__head h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin: 0 0 .35rem;
    color: var(--ink);
}

.auth-panel__head p {
    margin: 0;
    color: var(--muted);
}

.auth-alert {
    border-radius: 14px;
    padding: .85rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.auth-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: var(--teal-soft);
    border: 1px solid rgba(10, 140, 173, 0.22);
    color: var(--teal-deep);
}

.auth-alert--info {
    background: var(--sand);
    border: 1px solid var(--sand-2);
    color: var(--ink-2);
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label,
body.auth-body .form-label {
    display: block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .4rem;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input i.lead {
    position: absolute;
    left: 14px;
    color: var(--muted);
    pointer-events: none;
}

.auth-input input,
.auth-field select,
.auth-field textarea,
body.auth-body .form-control {
    width: 100%;
    padding: .85rem 1rem .85rem 2.7rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field select,
.auth-field textarea,
.auth-input input.no-icon,
body.auth-body .form-control {
    padding-left: 1rem;
}

.auth-input input:focus,
.auth-field select:focus,
.auth-field textarea:focus,
body.auth-body .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(10, 140, 173, 0.14);
    background: #fff;
}

.auth-input .toggle-pass {
    position: absolute;
    right: 12px;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
}

.auth-input .toggle-pass:hover { color: var(--teal-deep); }

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.auth-meta label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}

.auth-meta a {
    font-weight: 700;
    color: var(--teal-deep);
}

body.auth-body .btn.btn-teal,
body.auth-body .btn.btn-solid,
body.auth-body .btn.btn-line,
body.auth-body .btn.auth-submit {
    padding: .9rem 1.45rem;
    min-height: 2.75rem;
}

.auth-submit {
    width: 100%;
}

.step .btn + .btn {
    margin-top: .7rem;
}

.auth-submit.loading .btn-text { display: none; }
.auth-submit.loading .spinner { display: inline-block; }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .6s linear infinite;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    margin: 1.35rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-foot {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

.auth-foot a { font-weight: 700; color: var(--teal-deep); }

.auth-tiny {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
}

.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--teal-soft);
    color: var(--teal-deep);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
}

.auth-otp {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}

.auth-otp input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
}

.auth-otp input:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 140, 173, 0.14);
    background: #fff;
}

.otp-section,
.step { display: none; }
.otp-section.is-active,
.step.is-active { display: block; }
.form-section.is-hidden { display: none; }

.verified-phone { font-weight: 800; color: var(--teal-deep); }

.phone-preview {
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1rem;
    padding: .65rem;
    background: var(--sand);
    border-radius: 12px;
    font-weight: 600;
}

.phone-preview strong { color: var(--ink); }

.auth-switch {
    background: none;
    border: 0;
    padding: 0;
    color: var(--teal-deep);
    font-weight: 700;
    cursor: pointer;
}

.auth-switch:hover { color: var(--teal); }

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        margin-top: 1.25rem;
    }

    .auth-panel {
        order: -1;
        padding: 1.6rem;
    }

    .auth-aside {
        min-height: auto;
        padding: 1.75rem;
    }

    .auth-aside h1 { max-width: none; }

    .auth-points { display: none; }
}
