:root {
    --auth-bg-top: #070c15;
    --auth-bg-middle: #0b1220;
    --auth-bg-bottom: #070c15;
    --auth-surface: rgba(255, 255, 255, 0.05);
    --auth-surface-strong: rgba(255, 255, 255, 0.1);
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-text: #ffffff;
    --auth-text-muted: rgba(255, 255, 255, 0.7);
    --auth-text-soft: rgba(255, 255, 255, 0.6);
    --auth-text-faint: rgba(255, 255, 255, 0.5);
    --auth-placeholder: rgba(255, 255, 255, 0.35);
    --auth-brand-400: #60a5fa;
    --auth-brand-500: #3b82f6;
    --auth-brand-600: #2563eb;
    --auth-brand-700: #1d4ed8;
    --auth-emerald-300: #6ee7b7;
    --auth-emerald-500: #10b981;
    --auth-rose-border: rgba(253, 164, 175, 0.3);
    --auth-rose-bg: rgba(244, 63, 94, 0.1);
    --auth-rose-text: #ffe4e6;
    --auth-shadow-card: 0 18px 60px rgba(0, 0, 0, 0.25);
    --auth-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
    --auth-shadow-ring: 0 0 0 6px rgba(59, 130, 246, 0.18);
    --auth-radius-card: 1.5rem;
    --auth-radius-control: 1rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page-body {
    min-height: 100vh;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-middle) 60%, var(--auth-bg-bottom) 100%);
}

.auth-header {
    width: 100%;
    padding: 1.5rem 1rem;
}

.auth-header__inner,
.auth-shell {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-brand__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: var(--auth-surface);
    box-shadow: inset 0 0 0 1px var(--auth-border);
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.auth-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.auth-brand__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.auth-brand__subtitle {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--auth-text-faint);
}

.auth-shell {
    padding: 0 1rem 3rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-panel {
    min-width: 0;
}

.auth-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--auth-radius-card);
    border: 1px solid var(--auth-border);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow-card);
    backdrop-filter: blur(8px);
}

.auth-card--form {
    box-shadow: var(--auth-shadow-card);
}

.auth-card__content--promo {
    position: relative;
    padding: 2rem;
}

.auth-card__glow {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}

.auth-card__glow--primary {
    top: -6rem;
    right: -6rem;
    opacity: 0.35;
    background: linear-gradient(135deg, var(--auth-brand-500), var(--auth-brand-600), var(--auth-emerald-500));
}

.auth-card__glow--secondary {
    left: -7rem;
    bottom: -7rem;
    opacity: 0.2;
    background: linear-gradient(135deg, var(--auth-emerald-500), var(--auth-brand-600), var(--auth-brand-700));
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--auth-surface);
    box-shadow: inset 0 0 0 1px var(--auth-border);
    font-size: 0.75rem;
    font-weight: 900;
}

.auth-hero-title {
    margin: 1.5rem 0 0;
    font-size: 1.875rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.auth-hero-title__accent {
    background: linear-gradient(90deg, var(--auth-brand-400), var(--auth-emerald-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero-copy {
    margin: 1rem 0 0;
    color: var(--auth-text-muted);
    font-size: 0.875rem;
    line-height: 1.625;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
}

.auth-feature-card {
    border-radius: var(--auth-radius-card);
    border: 1px solid var(--auth-border);
    background: var(--auth-surface);
    padding: 1rem;
}

.auth-feature-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 900;
}

.auth-feature-card__text {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--auth-text-soft);
}

.auth-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--auth-border);
}

.auth-card__header-copy {
    min-width: 0;
}

.auth-card__eyebrow {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.auth-card__description {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--auth-text-soft);
}

.auth-card__badge {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: inset 0 0 0 1px var(--auth-border);
    flex-shrink: 0;
}

.auth-alert {
    margin: 1.25rem 1.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.auth-alert--error {
    border: 1px solid var(--auth-rose-border);
    background: var(--auth-rose-bg);
    color: var(--auth-rose-text);
}

.auth-alert__title {
    margin: 0;
    font-weight: 900;
}

.auth-alert__list {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.75rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.auth-field {
    min-width: 0;
}

.auth-field__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--auth-text-muted);
}

.auth-field__input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-control);
    background: var(--auth-surface);
    padding: 0.75rem 1rem;
    color: var(--auth-text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field__input::placeholder {
    color: var(--auth-placeholder);
}

.auth-field__input:focus,
.auth-checkbox__input:focus {
    border-color: var(--auth-brand-400);
    box-shadow: var(--auth-shadow-ring);
}

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

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

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    background: var(--auth-surface);
    color: var(--auth-text);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: var(--auth-surface-strong);
}

.auth-form__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.auth-checkbox__input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    accent-color: var(--auth-brand-500);
    background: var(--auth-surface);
}

.auth-link {
    text-decoration: none;
    color: var(--auth-text);
}

.auth-link:hover {
    opacity: 0.8;
}

.auth-link--strong {
    font-size: 0.75rem;
    font-weight: 900;
}

.auth-submit-button {
    width: 100%;
    border: 0;
    border-radius: var(--auth-radius-control);
    background: linear-gradient(90deg, var(--auth-brand-500), var(--auth-brand-700));
    padding: 0.75rem 1rem;
    color: var(--auth-text);
    font-size: 0.875rem;
    font-weight: 900;
    box-shadow: var(--auth-shadow-soft);
    cursor: pointer;
}

.auth-submit-button:hover {
    opacity: 0.95;
}

.auth-form__footnote {
    padding-top: 0.75rem;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--auth-text-faint);
}

@media (min-width: 640px) {
    .auth-header {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .auth-shell {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .auth-card__content--promo,
    .auth-card__header,
    .auth-form {
        padding: 2rem;
    }

    .auth-hero-title {
        font-size: 2.25rem;
    }

    .auth-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .auth-header {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .auth-shell {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .auth-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .auth-panel--promo,
    .auth-panel--form {
        grid-column: span 6 / span 6;
    }
}
