﻿.auth-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 15% 60%, #eaf5ee, transparent 60%), #fafcfb;
    display: flex;
    flex-direction: column;
}
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 6%;
    border-bottom: 1px solid var(--line);
    gap: 20px;
}
.back-link {
    font-size: 12px;
    color: var(--muted);
}
.auth-container {
    width: 100%;
    max-width: 1150px;
    margin: auto;
    padding: 65px 35px;
}
.auth-intro h1 {
    font-size: 53px;
    letter-spacing: -2px;
    line-height: 1.15;
}
.auth-intro > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    max-width: 370px;
    margin: 25px 0 32px;
}
.intro-benefit {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}
.intro-benefit > span {
    background: #dceee2;
    border-radius: 11px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}
.intro-benefit strong {
    font-size: 13px;
    display: block;
}
.intro-benefit small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.7;
}
.auth-disclaimer {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 30px;
    max-width: 370px;
}
.auth-card {
    background: white;
    border: 1px solid #e0e8e2;
    border-radius: 18px;
    padding: 38px;
    box-shadow: 0 15px 60px #17392c08;
}
.auth-card h2 {
    font-size: 30px;
    overflow-wrap: anywhere;
}
.auth-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 15px 0 28px;
}
.auth-card .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
}
.form-control {
    border-color: #dce4df;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
}
.form-control:focus {
    border-color: #579d77;
    box-shadow: 0 0 0 0.2rem #579d7720;
}
.form-text {
    font-size: 10px;
    line-height: 1.8;
}
.auth-switch {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 25px 0 0;
}
.auth-switch a {
    color: #367c57;
    font-weight: 700;
}
.form-check-label {
    font-size: 12px;
}
.alert {
    font-size: 12px;
    line-height: 1.8;
}
.auth-footer {
    text-align: center;
    padding: 22px;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.balance-panel {
    background: var(--ink);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.balance-panel > span {
    font-size: 12px;
    color: #c5d8cd;
}
.balance-panel strong {
    display: block;
    font-size: 48px;
    line-height: 1.3;
    margin: 10px 0;
}
.balance-panel strong small {
    font-size: 17px;
    color: var(--mint);
}
.balance-panel p {
    font-size: 11px;
    color: #c5d8cd;
    margin: 0;
}
.verification-panel {
    background: #f0f6f2;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
}
.verification-panel h3 {
    font-size: 15px;
    font-weight: 700;
}
.verification-panel p,
.verification-panel small {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.verification-panel small {
    display: block;
    margin-top: 10px;
}
.verification-status {
    font-size: 12px;
    margin-bottom: 25px;
    display: flex;
    gap: 9px;
    align-items: center;
    color: #367c57;
}
.account-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-header .header-actions {
    display: flex;
    gap: 10px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-actions .btn {
    padding: 9px 14px;
    font-size: 11px;
}
@media (max-width: 767px) {
    .auth-header {
        padding: 22px;
    }
    .auth-header .brand {
        font-size: 17px;
    }
    .back-link {
        font-size: 10px;
    }
    .auth-container {
        padding: 35px 20px;
    }
    .auth-intro h1 {
        font-size: 36px;
    }
    .auth-intro > p {
        margin: 16px 0;
    }
    .auth-intro .intro-benefit,
    .auth-intro .auth-disclaimer {
        display: none;
    }
    .auth-card {
        padding: 26px;
    }
    .auth-intro .eyebrow {
        margin-bottom: 15px;
    }
    .topbar {
        flex-wrap: wrap;
    }
    .header-actions .btn {
        padding: 9px 10px;
    }
    .header-actions {
        gap: 8px;
    }
}

.auth-page {
    min-height: 100svh;
}

.password-field {
    flex-wrap: nowrap;
}

.password-field .form-control {
    min-width: 0;
}

.password-toggle {
    min-height: 48px;
    min-width: 84px;
    font-size: 12px;
    padding: 10px 12px;
}

.password-toggle[hidden] {
    display: none;
}

.password-field .form-control:has(+ [hidden]) {
    border-radius: 8px;
}

.auth-header .brand-icon {
    flex-shrink: 0;
}

.balance-panel strong {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .auth-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .back-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 12px;
    }

    .auth-container {
        padding: 28px 16px 36px;
    }

    .auth-container > .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 24px;
    }

    .auth-intro h1 {
        font-size: clamp(30px, 8vw, 40px);
        letter-spacing: -1px;
    }

    .auth-intro > p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .auth-card h2 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .form-control {
        font-size: 16px;
        min-height: 48px;
        padding: 12px;
    }

    .form-label,
    .form-check-label,
    .auth-subtitle,
    .verification-panel p {
        font-size: 14px;
        line-height: 1.7;
    }

    .form-text,
    .auth-disclaimer,
    .verification-panel small,
    .balance-panel p,
    .auth-footer {
        font-size: 12px;
        line-height: 1.8;
    }

    .form-check {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding-left: 0;
    }

    .form-check .form-check-input {
        float: none;
        flex-shrink: 0;
        margin: 0;
        width: 22px;
        height: 22px;
    }

    .form-check-label {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .auth-switch {
        font-size: 14px;
        margin-top: 18px;
    }

    .auth-switch a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .auth-card .alert {
        font-size: 14px;
        padding: 14px;
    }

    .auth-card .alert ul {
        padding-left: 18px;
    }

    .balance-panel,
    .verification-panel {
        padding: 20px 16px;
    }

    .verification-status {
        font-size: 14px;
        line-height: 1.7;
    }

    .header-actions .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 359px) {
    .auth-card {
        padding: 22px 16px;
    }

    .auth-card h2 {
        font-size: 26px;
    }
}
