/* --- Mise en page globale (Inspiré de ta structure MECA-CN) --- */
.connexion-page.recup-page {
    display: flex;
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    padding: 20px;
}

/* Image de fond en overlay discret */
.landing_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05; /* Très léger pour ne pas gêner la lecture */
    z-index: 0;
}

/* --- Hero Section (Gauche) --- */
.connexion-hero {
    flex: 1;
    z-index: 1;
    padding: 40px;
    max-width: 500px;
}

.connexion-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.connexion-hero h1 span {
    color: #0b63b6;
}

.hero-text {
    margin-top: 20px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Carte de Formulaire (Droite) --- */
.connexion-card.recup-card {
    flex: 1;
    max-width: 450px;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    z-index: 1;
    border: 1px solid #f1f5f9;
}

.card-head p {
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #0b63b6;
    margin-bottom: 25px;
}

.card-head h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #0f172a;
}

/* --- États des étapes --- */
.recup-step {
    animation: fadeIn 0.4s ease-out;
}

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

.hidden {
    display: none !important;
}

/* --- Champs et Boutons --- */
.connexion-group {
    margin-bottom: 20px;
}

.connexion-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.connexion-group input {
    width: 95%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.connexion-group input:focus {
    outline: none;
    border-color: #0b63b6;
    box-shadow: 0 0 0 4px rgba(11, 99, 182, 0.1);
}

/* Style spécial pour le code à 6 chiffres */
#code {
    letter-spacing: 0.5em;
    font-size: 1.8rem;
    text-align: center;
    font-family: 'Courier New', Courier, monospace; /* Aspect technique */
    color: #0b63b6;
    background: #f8fafc;
}

.connexion-submit {
    width: 100%;
    padding: 16px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.connexion-submit:hover {
    background: #0b63b6;
}

.connexion-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
}


.connexion-hero h1{
    margin-bottom:none !important;
}

@media screen and (max-width : 600px) {
    .connexion-page.recup-page{
        flex-direction:column;
        min-height:0;
    }
}

@media screen and (max-width: 835px) and (min-width: 600px) {
    .connexion-hero h1 {
        font-size: 1.8rem;
    }
}