/* ============================================================
   SpritVerse — unified auth screens
   (login, sign-up, OTP, 2FA OTP, forgot / change password)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 14px;
    background: radial-gradient(1100px 560px at 50% -10%, #efe8fc 0%, #f6f4fc 46%, #f3f1fb 100%);
}
.auth-shell { width: 100%; max-width: 420px; margin: 0 auto; }

.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-brand img { height: 30px; }

.auth-card {
    background: #fff;
    border: 1px solid #ece6fb;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 16px 46px rgba(91, 60, 196, .12);
}

.auth-emoji { font-size: 2rem; line-height: 1; text-align: center; }
.auth-title { font-weight: 800; color: #2c2350; text-align: center; margin: 10px 0 4px; font-size: 1.3rem; }
.auth-sub { color: #857aa3; font-size: .9rem; text-align: center; margin: 0; }
.auth-sub-strong { color: #5b3cc4; font-weight: 700; }

.auth-form { margin-top: 20px; text-align: left; }
.auth-field { margin-bottom: 16px; }
.auth-field label { font-weight: 700; color: #3b2a6b; font-size: .82rem; display: block; margin-bottom: 6px; }
.auth-field label small { font-weight: 500; color: #a79fc4; }

.auth-input {
    width: 100%;
    border: 1.5px solid #e0d8f5;
    border-radius: 12px;
    background: #faf8ff;
    padding: 11px 14px;
    font-size: .95rem;
    color: #2c2350;
    outline: none;
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.auth-input::placeholder { color: #a79fc4; }
.auth-input:focus { border-color: #6c4bd6; background: #fff; box-shadow: 0 0 0 3px rgba(108, 75, 214, .15); }

.auth-btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(135deg, #6c4bd6, #8b63e6);
    border: none; color: #fff; font-weight: 700;
    border-radius: 12px; padding: 12px;
    transition: filter .12s, transform .1s;
}
.auth-btn:hover { color: #fff; filter: brightness(1.06); }
.auth-btn:active { transform: scale(.99); }
.auth-btn:disabled { opacity: .8; cursor: default; }

.auth-spin {
    display: inline-block; width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, .55); border-top-color: #fff;
    border-radius: 50%; animation: authspin .7s linear infinite;
}
@keyframes authspin { to { transform: rotate(360deg); } }

.auth-link { color: #6c4bd6; font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { text-align: center; color: #857aa3; font-size: .86rem; margin-top: 16px; }

.auth-err { display: none; color: #b32020; background: #fdeaea; border: 1px solid #f4c7c7; border-radius: 10px; padding: 9px 12px; font-size: .85rem; margin-bottom: 12px; }
.auth-ok { display: none; color: #1f8a5b; font-weight: 700; font-size: .9rem; margin-top: 10px; text-align: center; }

.auth-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #6b6580; margin-bottom: 16px; }
.auth-check a { color: #6c4bd6; }

.auth-divider { display: flex; align-items: center; gap: 12px; color: #a79fc4; font-size: .8rem; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #ece6fb; }

/* OTP boxes (sign-up, 2FA, password reset) */
.auth-otp-row { display: flex; justify-content: center; gap: 10px; margin: 22px 0 8px; }
.auth-otp-input {
    width: 52px; height: 60px; text-align: center;
    font-size: 1.5rem; font-weight: 700; color: #2c2350;
    border: 1.5px solid #e0d8f5; border-radius: 12px; background: #faf8ff; outline: none;
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.auth-otp-input:focus { border-color: #6c4bd6; background: #fff; box-shadow: 0 0 0 3px rgba(108, 75, 214, .18); }
.auth-otp-input.filled { border-color: #6c4bd6; background: #fff; }
