.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.auth-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3.5rem 1rem 4rem;
}

.auth-main .hero-wash {
    inset: 0;
    height: auto;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 72%);
}

.auth-card {
    position: relative;
    width: min(26rem, 100%);
    padding: 2.25rem 1.75rem 2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 6%, transparent);
    text-align: center;
}

.auth-logo {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 0.7rem;
    object-fit: contain;
}

.auth-card h1 {
    font-size: 1.75rem;
}

.auth-lede {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.975rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
    text-align: left;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.auth-field input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-field input:focus {
    outline: 2px solid var(--primary-100);
    border-color: var(--primary);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
    cursor: pointer;
    min-height: 2.85rem;
}

.auth-submit-wait {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit.is-busy {
    cursor: wait;
    pointer-events: none;
}

.auth-submit.is-busy .auth-submit-label { display: none; }
.auth-submit.is-busy .auth-submit-wait { display: inline-flex; }

.auth-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: auth-spin 0.65s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-spinner { animation: none; border-top-color: #fff; }
}

.auth-error {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 800px) {
    .auth-main { padding-top: 2rem; }
}
