/* Branded login / forgotten password / reset password screens. */
.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 16px;
    background:
        radial-gradient(circle at 12% 18%, #ffd9cc 0 70px, transparent 71px),
        radial-gradient(circle at 88% 82%, #d6e4ff 0 90px, transparent 91px),
        radial-gradient(circle at 85% 14%, #fff0b8 0 46px, transparent 47px),
        radial-gradient(circle at 10% 86%, #d4f5e4 0 56px, transparent 57px),
        var(--bg);
}

/* Logo: three bouncing outline shapes */
.auth-brand {
    text-align: center;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    height: 56px;
}

.auth-logo-shape {
    display: block;
    width: 40px;
    height: 40px;
    border: 6px solid;
    animation: auth-bounce 2.4s ease-in-out infinite;
}

.auth-logo-shape--circle {
    border-color: #ff5e5b;
    border-radius: 50%;
}

.auth-logo-shape--square {
    border-color: #3a86ff;
    border-radius: 6px;
    animation-delay: 0.2s;
}

.auth-logo-shape--triangle {
    width: 0;
    height: 0;
    border: 0;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-bottom: 40px solid #ffbe0b;
    animation-delay: 0.4s;
}

@keyframes auth-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-logo-shape {
        animation: none;
    }
}

.auth-brand-name {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-align: center;
}

.auth-lead {
    margin: -6px 0 4px;
    color: var(--muted);
    text-align: center;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 3px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1.1rem;
    transition: border-color 0.15s;
}

.auth-field input:focus {
    border-color: var(--focus);
    outline: none;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.auth-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--focus);
}

.auth-submit {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.auth-link {
    align-self: center;
    color: var(--focus);
    font-weight: 800;
}

.auth-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.auth-message--error {
    background: var(--bad-soft);
    color: var(--bad-ink);
}

.auth-message--notice {
    background: var(--good-soft);
    color: var(--good-ink);
}
