.auth-stage {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: var(--z-content);
}

.auth-card {
    width: min(380px, 100%);
    padding: 2rem 1.75rem;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.3s ease;
}

.auth-card.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.auth-field label {
    display: block;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .4rem;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: .95rem;
    padding: .65rem .8rem;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.auth-field input::placeholder {
    color: var(--text-dim);
    opacity: 0.55;
}

.auth-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.auth-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card-solid) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-submit {
    width: 100%;
}

.auth-errors {
    min-height: 18px;
    font-size: .8rem;
    color: var(--error);
}

.auth-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}
