.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #e7f1ff;
    background-color: #091326;
    background-image:
        linear-gradient(rgba(124, 174, 230, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 174, 230, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, #091326 0%, #0c1a31 56%, #08101e 100%);
    background-size: 64px 64px, 64px 64px, auto;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-page .auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px max(24px, calc((100vw - 1120px) / 2));
    background: transparent;
}

.auth-topbar {
    width: 100%;
    max-width: 1120px;
    min-height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e7f1ff;
    font-size: 1.1rem;
    font-weight: 750;
    text-decoration: none;
}

.auth-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6cf, #2489ff 60%, #0b5bd3 100%);
    box-shadow: 0 0 20px rgba(36, 137, 255, 0.35);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a9c7e8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.auth-back:hover,
.auth-back:focus-visible {
    color: #e7f1ff;
}

.auth-layout {
    width: 100%;
    max-width: 1120px;
    margin: clamp(48px, 9vh, 88px) auto 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
    align-items: center;
    gap: clamp(48px, 8vw, 108px);
}

.auth-story {
    max-width: 520px;
    animation: auth-arrive 420ms ease both;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #9dd8ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-kicker::before {
    width: 24px;
    height: 1px;
    background: #4aaeff;
    content: "";
}

.auth-story h1 {
    margin: 0;
    color: #f1f7ff;
    font-size: 3.5rem;
    font-weight: 780;
    line-height: 1.08;
}

.auth-story h1 span {
    color: #6cc8ff;
}

.auth-story-copy {
    max-width: 440px;
    margin: 20px 0 0;
    color: #a9c7e8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-market-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.auth-market-list span {
    padding: 8px 11px;
    border: 1px solid rgba(132, 184, 237, 0.17);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: #cfe2ff;
    font-size: 0.8rem;
}

.auth-story-footnote {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
    color: #8eaccd;
    font-size: 0.85rem;
}

.auth-story-footnote i {
    color: #6cc8ff;
}

.auth-page .auth-card {
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 34px;
    border: 1px solid rgba(156, 194, 237, 0.17);
    border-radius: 8px;
    background: linear-gradient(155deg, rgba(18, 36, 62, 0.96), rgba(10, 23, 42, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
    animation: auth-arrive 520ms 60ms ease both;
}

.auth-header {
    margin-bottom: 26px;
    text-align: left;
}

.auth-page .auth-header .auth-eyebrow {
    margin: 0 0 9px;
    color: #74c9ff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-page .auth-header h2 {
    margin: 0;
    color: #f1f7ff;
    font-size: 1.8rem;
    line-height: 1.2;
}

.auth-page .auth-header p:last-child {
    margin: 9px 0 0;
    color: #a9c7e8;
    font-size: 0.92rem;
}

.auth-page .form-label {
    margin-bottom: 8px;
    color: #d8e8fb;
    font-size: 0.83rem;
}

.auth-page .form-control {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(156, 194, 237, 0.2);
    border-radius: 6px;
    background: rgba(5, 15, 29, 0.68);
    color: #f1f7ff;
    font-size: 0.9rem;
}

.auth-page .form-control::placeholder {
    color: #7189a6;
}

.auth-page .form-control:focus {
    border-color: #4aaeff;
    box-shadow: 0 0 0 3px rgba(36, 137, 255, 0.16);
}

.auth-page .input-group {
    position: relative;
}

.auth-page .input-group .form-control {
    padding-right: 48px;
}

.auth-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8eaccd;
    cursor: pointer;
    font-size: 0.95rem;
}

.auth-page .password-toggle:hover,
.auth-page .password-toggle:focus-visible {
    color: #74c9ff;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-top: 5px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #5fc1ff, #1f8fff);
    box-shadow: 0 9px 22px rgba(36, 137, 255, 0.2);
    color: #061022;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    transition: filter 160ms ease, transform 160ms ease;
}

.auth-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.auth-page .alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #d8e8fb;
    font-size: 0.88rem;
}

.auth-page .alert-danger {
    border-color: rgba(255, 107, 107, 0.4);
    color: #ffb1b1;
}

.auth-page .alert-success {
    border-color: rgba(33, 197, 109, 0.4);
    color: #a5f1c5;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(156, 194, 237, 0.12);
    color: #9bb6d4;
    font-size: 0.87rem;
    text-align: center;
}

.auth-footer p {
    margin: 0;
}

.auth-page .auth-footer a {
    color: #74c9ff;
    font-weight: 650;
    text-decoration: none;
}

.auth-page .auth-footer a:hover {
    color: #bfe7ff;
    text-decoration: underline;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 14px;
}

.auth-form-grid .form-group {
    min-width: 0;
    margin: 0;
}

.auth-form-grid .auth-field-wide {
    grid-column: 1 / -1;
}

.auth-page .form-text.text-muted {
    display: block;
    margin-top: 7px;
    color: #8eaccd;
    font-size: 0.76rem;
    line-height: 1.5;
}

@keyframes auth-arrive {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .auth-page .auth-container {
        padding: 20px 24px;
    }

    .auth-layout {
        max-width: 620px;
        margin-top: 48px;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .auth-story {
        max-width: 560px;
    }

    .auth-story h1 {
        font-size: 2.8rem;
    }

    .auth-story-copy {
        margin-top: 14px;
    }

    .auth-market-list {
        margin-top: 20px;
    }

    .auth-story-footnote {
        margin-top: 20px;
    }

    .auth-page .auth-card {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .auth-page .auth-container {
        padding: 16px;
    }

    .auth-back {
        font-size: 0.82rem;
    }

    .auth-layout {
        margin-top: 38px;
        gap: 26px;
    }

    .auth-story h1 {
        font-size: 2.35rem;
    }

    .auth-story-copy {
        font-size: 0.94rem;
    }

    .auth-story-footnote {
        margin-top: 16px;
    }

    .auth-page .auth-card {
        padding: 24px 20px;
    }

    .auth-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .auth-form-grid .auth-field-wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-story,
    .auth-page .auth-card {
        animation: none;
    }

    .auth-submit,
    .auth-back {
        transition: none;
    }
}