/* Page styles for templates/registration/register.html.twig (moved out of the template so they are cached). */
/* === FOND ANIMÉ (identique à la connexion) === */
.register-bg {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem;
    margin-bottom: -3rem;
    min-height: calc(100dvh - 64px);
    padding: 2rem 0;
    background: radial-gradient(circle at 20% 20%, #b8d4ff 0%, #9fb3ff 25%, #7a8cff 70%, #6673ff 100%);
    animation: bgMove 12s ease-in-out infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes bgMove {
    0%   { background-position: 0% 0%;   background-size: 100% 100%; }
    50%  { background-position: 100% 100%; background-size: 110% 110%; }
    100% { background-position: 0% 50%;  background-size: 100% 100%; }
}

/* === CARTE === */
.register-card {
    background: rgba(17, 24, 64, 0.42);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 420px;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.register-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.register-card h2 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.register-card .register-subtitle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.8rem;
}

/* === CHAMPS === */
.register-card label {
    text-align: left;
    display: block;
    font-weight: 500;
    color: #f0f4ff;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.register-card input[type="email"],
.register-card input[type="password"],
.register-card input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.3rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.register-card input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.register-card input[type="email"]:focus,
.register-card input[type="password"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* === CHECKBOX ACCEPTATION === */
.agree-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.2rem;
    text-align: left;
}

.agree-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #fff;
    cursor: pointer;
}

.agree-wrap .agree-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.4;
}

/* === ERREURS === */
.field-error {
    text-align: left;
    color: #ffd0d0;
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

.form-errors-global {
    background: rgba(255, 71, 71, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 71, 71, 0.3);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* === BOUTON === */
.btn-register {
    background: linear-gradient(90deg, #6f8cff, #7ba6f2, #9cb9ff);
    background-size: 200%;
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(100, 140, 255, 0.4);
}

.btn-register:hover {
    background-position: 100% 0;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(100, 140, 255, 0.5);
}

/* === LIEN RETOUR === */
.register-card .small-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 1.2rem;
}

.register-card .small-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

/* === SÉPARATEUR DE SÉCURITÉ === */
.register-security-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 1.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .register-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
}
@media (max-width: 576px) {
    .login-bg, .register-bg { align-items: flex-start; }
}
