/* Shared styling for the sign-in and sign-up pages. Global (not scoped) so both pages
   render identically. Scoped under .auth-inner so the form overrides don't leak. */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 9rem);
    padding: 2rem 0;
}

.auth-inner {
    width: 100%;
    max-width: 25rem;
}

.auth-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin: 0.35rem 0 0.5rem;
}

.auth-sub {
    font-family: var(--font-text);
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.9rem;
    max-width: 36ch;
}

.auth-inner .form-label {
    font-family: var(--font-text);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.auth-inner .form-control {
    background: var(--surface-raised);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
}
.auth-inner .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: var(--ink);
    background: color-mix(in oklch, var(--sla-breached) 9%, var(--surface-raised));
    border: 1px solid color-mix(in oklch, var(--sla-breached) 35%, transparent);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    margin-bottom: 1.1rem;
    animation: auth-err-in 0.35s var(--ease) both;
}
.auth-error-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--sla-breached);
    flex: none;
}
@keyframes auth-err-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-error { animation: none; } }

.auth-submit {
    width: 100%;
    margin-top: 0.7rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease;
}
.auth-submit:hover:not(:disabled) { filter: brightness(1.35); }
.auth-submit:active:not(:disabled) { transform: translateY(1px); filter: brightness(1.2); }
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-alt {
    margin-top: 1.4rem;
    font-family: var(--font-text);
    font-size: 0.92rem;
    color: var(--ink-faint);
}
.auth-alt a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}
.auth-alt a:hover { text-decoration: underline; }
