body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #f8fafc;
}

a {
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.05), transparent 26%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.04), transparent 22%),
        linear-gradient(180deg, #fcfcfd 0%, #f8fafc 100%);
}

.auth-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 470px);
    gap: 28px;
    align-items: stretch;
}

.auth-shell-single {
    width: min(640px, calc(100% - 32px));
    display: block;
    padding: 48px 0;
}

.auth-hero,
.auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(22px);
}

.auth-hero {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #f8fafc;
}

.auth-hero::before,
.auth-hero::after,
.auth-card::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-hero::before {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 72%);
}

.auth-hero::after {
    width: 220px;
    height: 220px;
    left: -60px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0) 72%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    padding: 32px;
}

.auth-card-single {
    max-width: 640px;
    margin: 0 auto;
}

.auth-logo-image {
    display: block;
    height: 28px;
    width: auto;
}

.auth-card::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.035) 0%, rgba(15, 23, 42, 0) 72%);
}

.auth-brand,
.auth-card-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-brand-mark,
.auth-card-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.auth-brand-mark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-brand-mark {
    width: auto;
    min-width: 42px;
    padding: 0 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-brand-mark img,
.auth-card-brand-mark img {
    max-width: 26px;
    max-height: 26px;
}

.auth-hero-copy,
.auth-card-content,
.auth-card-footer {
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(241, 245, 249, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.auth-subtitle {
    max-width: 34rem;
    margin: 18px 0 0;
    color: rgba(226, 232, 240, 0.74);
    font-size: 1rem;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-feature-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
}

.auth-feature-copy {
    margin: 4px 0 0;
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.92rem;
}

.auth-hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.auth-stat {
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.auth-stat-label {
    display: block;
    margin-top: 2px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.84rem;
}

.auth-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-card-top-single {
    display: grid;
    gap: 8px;
    justify-items: start;
    text-align: left;
}

.auth-brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.03em;
    justify-content: flex-start;
}

.auth-brand-inline .auth-card-brand-mark {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.auth-title-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card-kicker {
    margin: 0 0 6px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-card-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.auth-card-subtitle {
    margin: 6px 0 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-status,
.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 0.94rem;
}

.auth-alert-danger {
    background: rgba(254, 226, 226, 0.88);
    border-color: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.auth-alert-success {
    background: rgba(220, 252, 231, 0.88);
    border-color: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.auth-stack {
    display: grid;
    gap: 14px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-field,
.auth-checkbox {
    display: grid;
    gap: 8px;
}

.auth-field > div,
.auth-checkbox > div {
    width: 100%;
}

.auth-field label,
.auth-checkbox label,
.auth-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.auth-input,
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.98rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-input:focus,
.auth-field input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.52);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-help {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.auth-form-note {
    margin: -2px 0 4px;
    color: #64748b;
    font-size: 0.84rem;
}

.auth-errors,
.auth-field ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #b91c1c;
    font-size: 0.84rem;
}

.auth-checkbox {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-checkbox .form-check,
.auth-checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-checkbox input[type="checkbox"],
.auth-checkbox-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid rgba(148, 163, 184, 0.9);
    border-radius: 6px;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-checkbox input[type="checkbox"]::after,
.auth-checkbox-input::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.16s ease;
}

.auth-checkbox input[type="checkbox"]:checked,
.auth-checkbox-input:checked {
    border-color: #0f4bd7;
    background: linear-gradient(135deg, #0b63f6 0%, #0f4bd7 100%);
    box-shadow: 0 8px 18px rgba(21, 151, 255, 0.2);
}

.auth-checkbox input[type="checkbox"]:checked::after,
.auth-checkbox-input:checked::after {
    transform: rotate(45deg) scale(1);
}

.auth-checkbox input[type="checkbox"]:focus,
.auth-checkbox-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-checkbox label,
.auth-checkbox-copy {
    margin: 0;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    cursor: pointer;
}

.auth-checkbox-copy a {
    color: #0b63f6;
    font-weight: 700;
}

.auth-checkbox-copy a:hover,
.auth-checkbox-copy a:focus {
    color: #0f4bd7;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b63f6 0%, #0f4bd7 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(21, 151, 255, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 24px 44px rgba(21, 151, 255, 0.28);
    filter: saturate(1.04);
}

.auth-social-stack {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.auth-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 0 20px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    text-decoration: none;
    overflow: hidden;
}

.auth-social-button:hover,
.auth-social-button:focus {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.auth-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    flex: 0 0 24px;
    overflow: hidden;
}

.auth-social-icon-placeholder,
.auth-social-icon-placeholder {
    width: 24px;
    height: 24px;
}

.auth-social-icon svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    display: block;
    flex: 0 0 16px;
}

.auth-social-label {
    line-height: 1;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    margin: 24px 0 20px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.auth-inline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-link {
    color: #0f172a;
    font-weight: 700;
}

.auth-link:hover,
.auth-link:focus {
    color: #334155;
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    font-size: 0.88rem;
}

.auth-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-message {
    display: grid;
    gap: 18px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-message-card {
    max-width: 560px;
}

.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    font-weight: 700;
}

.auth-secondary-button:hover,
.auth-secondary-button:focus {
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

@media (max-width: 980px) {
    .auth-shell {
        width: min(760px, calc(100% - 24px));
        grid-template-columns: 1fr;
        padding: 20px 0 28px;
    }

    .auth-hero {
        min-height: 360px;
    }

    .auth-shell-single {
        width: min(640px, calc(100% - 24px));
        padding: 28px 0;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        width: min(100% - 16px, 100%);
        gap: 16px;
        padding: 8px 0 20px;
    }

    .auth-shell-single {
        width: min(100% - 16px, 100%);
        padding: 16px 0 20px;
    }

    .auth-hero,
    .auth-card {
        border-radius: 22px;
        padding: 22px;
    }

    .auth-grid,
    .auth-inline,
    .auth-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
