.auth-main {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: calc(100vh - 6.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 490px);
    gap: 2rem;
    align-items: center;
    padding: 2rem 0 3rem;
}

.auth-copy {
    padding: 1rem 1rem 1rem 0.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.auth-copy h1 {
    margin: 1.25rem 0 0;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.auth-copy h1 span {
    display: block;
    color: #a8a8a8;
}

.auth-copy p {
    max-width: 36rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-list {
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #d6d6d6;
}

.feature-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
    flex: 0 0 auto;
}

.auth-card {
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.94), rgba(10, 10, 10, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.auth-card-header h2 {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

.auth-card-header p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.social-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.social-button,
.auth-button {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    min-height: 3.25rem;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.social-button:hover,
.auth-button:hover,
.social-button:focus-visible,
.auth-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

.social-mark {
    width: 1.45rem;
    height: 1.45rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.3rem 0 1rem;
    color: var(--dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.auth-form {
    display: grid;
    gap: 0.95rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    color: #dddddd;
    font-size: 0.92rem;
}

.field input {
    min-height: 3.25rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.field input::placeholder {
    color: #858585;
}

.field input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.auth-utility,
.auth-consent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-checkbox input {
    accent-color: #ffffff;
}

.auth-link {
    color: #f0f0f0;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 0.2em;
}

.auth-link:hover,
.auth-link:focus-visible {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.auth-button {
    margin-top: 0.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
    color: #040404;
    font-weight: 700;
    padding: 0.95rem 1rem;
}

.auth-footnote {
    margin-top: 1.25rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .auth-main {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding-top: 1.25rem;
    }

    .auth-copy {
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .auth-main {
        width: min(100% - 1rem, 1200px);
    }

    .auth-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .auth-copy h1 {
        font-size: 2.5rem;
    }

    .auth-utility,
    .auth-consent {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-status {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    line-height: 1.6;
}

.auth-status[hidden] {
    display: none;
}

.auth-status[data-state="success"] {
    border-color: rgba(92, 214, 159, 0.35);
    background: rgba(92, 214, 159, 0.08);
    color: #d7f8e8;
}

.auth-status[data-state="error"] {
    border-color: rgba(255, 122, 122, 0.35);
    background: rgba(255, 122, 122, 0.08);
    color: #ffd6d6;
}

.auth-status[data-state="info"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #d8d8d8;
}

.auth-muted-note {
    margin: 0.35rem 0 0;
    color: var(--dim);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-inline-link {
    background: none;
    border: 0;
    padding: 0;
    color: #f0f0f0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 0.2em;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.auth-section[hidden] {
    display: none;
}

.auth-card .is-busy {
    opacity: 0.7;
    pointer-events: none;
}
