:root {
    --auth-bg: #eef4fb;
    --auth-panel: #0f172a;
    --auth-surface: #ffffff;
    --auth-border: #dce6f2;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-teal: #0d9488;
    --auth-danger: #dc2626;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(13, 148, 136, .08)),
        var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .9rem;
}

.auth-site-nav,
.auth-site-footer {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
}

.auth-site-nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
}

.auth-site-nav__links,
.auth-site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .9rem;
}

.auth-site-nav__links a,
.auth-site-footer a {
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-site-nav__links a:hover,
.auth-site-footer a:hover {
    color: var(--auth-primary);
}

.auth-site-nav__cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .8rem;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
}

.auth-site-nav__cta:hover {
    background: var(--auth-primary);
    color: #fff;
}

.auth-site-footer {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--auth-muted);
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.auth-site-footer div {
    display: grid;
    gap: .15rem;
}

.auth-site-footer strong {
    color: var(--auth-text);
    font-size: .86rem;
}

.auth-site-footer span {
    font-size: .78rem;
}

.auth-shell {
    min-height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: minmax(390px, 44vw) minmax(0, 1fr);
}

.auth-brand-panel {
    display: flex;
    align-items: stretch;
    padding: .9rem 1rem 1rem;
}

.auth-brand-panel__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
    padding: clamp(1.5rem, 4vw, 3.2rem);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .28), transparent 34%),
        linear-gradient(160deg, rgba(37, 99, 235, .18), transparent 42%),
        linear-gradient(340deg, rgba(20, 184, 166, .16), transparent 44%),
        var(--auth-panel);
    color: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .2);
}

.auth-brand,
.auth-brand:hover {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: inherit;
    text-decoration: none;
}

.auth-brand__mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-teal));
    box-shadow: 0 12px 24px rgba(37, 99, 235, .3);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.auth-brand strong,
.auth-brand em {
    font-size: .95rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.auth-brand em {
    color: #93c5fd;
}

.auth-brand--nav {
    color: var(--auth-text);
}

.auth-brand-copy {
    max-width: 560px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: .8rem;
    padding: .2rem .6rem;
    border: 1px solid rgba(147, 197, 253, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #bfdbfe;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.auth-brand-copy p {
    margin: .95rem 0 0;
    max-width: 520px;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.65;
}

.auth-mock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem;
    border: 1px solid rgba(147, 197, 253, .24);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
}

.auth-mock-card div {
    display: grid;
    gap: .2rem;
}

.auth-mock-card span {
    color: #bfdbfe;
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-mock-card strong {
    font-size: .9rem;
}

.auth-mock-card a {
    flex: 0 0 auto;
    padding: .38rem .7rem;
    border-radius: 10px;
    background: #fff;
    color: #1d4ed8;
    font-size: .74rem;
    font-weight: 850;
    text-decoration: none;
}

.auth-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.auth-trust-grid div {
    min-height: 112px;
    padding: .85rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .075);
}

.auth-trust-grid i,
.auth-trust-grid strong,
.auth-trust-grid span {
    display: block;
}

.auth-trust-grid i {
    margin-bottom: .6rem;
    color: #67e8f9;
    font-size: 1.1rem;
}

.auth-trust-grid strong {
    margin-bottom: .25rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 850;
}

.auth-trust-grid span {
    color: #cbd5e1;
    font-size: .76rem;
    line-height: 1.45;
}

.auth-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1rem, 3.4vw, 3rem);
}

.auth-mobile-brand {
    display: none;
}

.auth-card {
    width: min(100%, 450px);
    padding: clamp(1.15rem, 3vw, 1.85rem);
    border: 1px solid rgba(220, 230, 242, .96);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 52px rgba(15, 23, 42, .1);
    backdrop-filter: blur(16px);
}

.auth-card h1.h3 {
    margin: 0 0 .35rem;
    color: var(--auth-text);
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: 0;
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}

.auth-card-header__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #eaf1ff;
    color: var(--auth-primary);
    font-size: 1rem;
}

.auth-card .text-muted {
    color: var(--auth-muted) !important;
    font-size: .82rem;
    line-height: 1.55;
}

.auth-card form {
    margin-top: 1.15rem;
}

.auth-card .form-label {
    margin-bottom: .35rem;
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
}

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

.auth-password-control {
    position: relative;
}

.auth-card .form-control {
    min-height: 46px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-text);
    font-size: .86rem;
    box-shadow: none;
}

.auth-password-control .form-control {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .4rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #eaf1ff;
    color: var(--auth-primary);
}

.auth-card .form-control:hover {
    border-color: #b6c5d8;
}

.auth-card .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
}

.auth-card .form-control:focus-visible,
.auth-card .form-check-input:focus-visible,
.auth-card .btn:focus-visible,
.auth-card a:focus-visible,
.auth-site-nav a:focus-visible,
.auth-site-footer a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 3px;
}

.auth-card .mb-3 {
    margin-bottom: .9rem !important;
}

.auth-card .mb-4 {
    margin-bottom: 1.05rem !important;
}

.auth-card .form-check-input {
    width: 1rem;
    height: 1rem;
    border-color: #cbd5e1;
}

.auth-card .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-card a {
    color: var(--auth-primary);
    font-weight: 750;
}

.auth-card a:hover {
    color: var(--auth-primary-dark);
}

.auth-card .btn-primary {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
    font-weight: 850;
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-primary-dark), #1e40af);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .3);
}

.auth-card .btn-outline-secondary {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 800;
}

.auth-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 46px;
    font-size: .86rem;
    font-weight: 850;
}

.auth-submit-button:disabled {
    cursor: wait;
    opacity: .78;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 1rem 0 0;
}

.auth-card .alert-success {
    border: 0;
    border-radius: 12px;
    background: #ecfdf5;
    color: #15803d;
    font-size: .82rem;
    font-weight: 750;
}

.auth-card .invalid-feedback,
.auth-card .text-danger {
    margin-top: .35rem;
    font-size: .76rem;
}

.auth-card .form-text {
    color: var(--auth-muted);
    font-size: .74rem;
}

.auth-password-strength {
    margin-top: .55rem;
}

.auth-password-strength span {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.auth-password-strength i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #94a3b8;
    transition: width .2s ease, background-color .2s ease;
}

.auth-password-strength small {
    display: block;
    margin-top: .32rem;
    color: var(--auth-muted);
    font-size: .72rem;
    font-weight: 750;
}

.auth-password-strength[data-strength="weak"] i {
    background: #dc2626;
}

.auth-password-strength[data-strength="good"] i {
    background: #d97706;
}

.auth-password-strength[data-strength="strong"] i {
    background: #16a34a;
}

.auth-error-summary {
    margin-bottom: 1rem;
    padding: .75rem .85rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #991b1b;
}

.auth-error-summary:focus {
    outline: 3px solid rgba(220, 38, 38, .18);
    outline-offset: 3px;
}

.auth-error-summary strong {
    display: block;
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 900;
}

.auth-error-summary ul {
    margin: 0;
    padding-left: 1.15rem;
}

.auth-error-summary li {
    margin: .18rem 0;
    font-size: .78rem;
}

.auth-link-row {
    margin: 1rem 0 0;
    color: var(--auth-muted);
    font-size: .78rem;
}

.auth-link-row--center {
    text-align: center;
}

.auth-link-row--start {
    text-align: left;
}

.auth-social-grid {
    display: flex;
    gap: .65rem;
    margin: 1rem 0;
}

.auth-social-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex: 1 1 0;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
}

.auth-social-btn:hover {
    border-color: #b6c5d8;
    background: #f8fafc;
    color: var(--auth-primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .95rem 0;
    color: var(--auth-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-brand {
        width: min(100%, 450px);
        display: flex;
        justify-content: flex-start;
    }

    .auth-brand--mobile {
        color: var(--auth-text);
    }

    .auth-brand--mobile .auth-brand__mark {
        width: 36px;
        height: 36px;
    }

    .auth-main {
        min-height: calc(100vh - 140px);
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .auth-site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-site-nav__cta {
        position: absolute;
        top: .85rem;
        right: 1rem;
    }

    .auth-site-nav__links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .25rem;
    }

    .auth-site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .auth-site-nav,
    .auth-site-footer {
        width: min(100% - 1.4rem, 1180px);
    }

    .auth-main {
        justify-content: flex-start;
        gap: .9rem;
        padding: .85rem;
    }

    .auth-mobile-brand {
        margin-top: .5rem;
    }

    .auth-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .auth-card form {
        margin-top: 1.1rem;
    }

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

    .auth-card .form-control {
        min-height: 44px;
    }

    .auth-submit-button {
        min-height: 44px;
    }

    .auth-card .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .75rem;
    }

    .auth-card .d-flex.gap-2 {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-card .d-flex.gap-2 .btn,
    .auth-card .d-flex.gap-2 form {
        width: 100%;
    }

    .auth-social-grid {
        flex-direction: column;
    }
}
