/* ==========================================================================
   ShyzosImage - Pages d'authentification (login / register)
   Dépend de theme.css (chargé avant).
   ========================================================================== */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Halo d'ambiance en fond */
.auth-wrap::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(108, 92, 231, 0.22) 0%,
        rgba(76, 139, 245, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.2rem;
    animation: auth-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- En-tête --- */
.auth-head {
    text-align: center;
    margin-bottom: 1.8rem;
}
.auth-logo {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--accent-grad);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}
.auth-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.auth-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Formulaire --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Conteneur captcha centré */
.captcha-container {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

/* --- Pied --- */
.auth-foot {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-foot a {
    font-weight: 600;
}

/* Lien "mot de passe oublié" sous le champ password */
.auth-forgot {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.83rem;
}
.auth-forgot a {
    color: var(--text-muted);
    font-weight: 500;
}
.auth-forgot a:hover {
    color: var(--accent);
}

/* --- Ligne conditions (register) --- */
.terms-row {
    align-items: flex-start;
    gap: 0.6rem;
}
.terms-row .check-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.6rem 1.3rem;
    }
}
