/* ==========================================================================
   MeeDoo Auth Pages Stylesheet (Login, Signup, Forgot Password)
   ========================================================================== */

.auth-page {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    background-color: var(--bg-color, #050505);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem; /* Marges extérieures sur desktop */
}

.auth-main {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 80vh;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem; /* Espace généreux sur desktop */
    max-width: 500px; /* Plus large pour laisser respirer les inputs */
    margin: 0 auto; /* Centrage */
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.auth-container h2 {
    font-size: 2.2rem;
    color: var(--text-main, #ffffff);
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.auth-subtitle {
    text-align: left;
    color: var(--text-muted, #888888);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.auth-form { width: 100%; }

.form-group { margin-bottom: 1.8rem; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-main, #ffffff);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main, #ffffff);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent, #00f0ff);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.link-forgot {
    font-size: 0.9rem;
    color: var(--text-muted, #888888);
    transition: color 0.3s;
    text-decoration: none;
}
.link-forgot:hover { color: var(--accent, #00f0ff); }

.auth-switch {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-muted, #888888);
    font-size: 0.95rem;
}
.auth-switch a {
    color: var(--text-main, #ffffff);
    font-weight: 600;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}
.auth-switch a:hover { color: var(--accent, #00f0ff); }

/* Zone de l'image ou de l'animation */
.auth-image {
    flex: 1;
    background-color: #050505;
    display: none;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
}

.auth-image canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Correction de l'effet "écrasé" sur mobile)
   ========================================================================== */

/* Affichage de l'image uniquement sur Desktop */
@media (min-width: 992px) {
    .auth-image { display: block; }
}

/* Sur Tablettes et Mobiles */
@media (max-width: 992px) {
    .auth-page {
        padding: 0; /* On retire les marges extérieures pour prendre tout l'écran */
    }

    .auth-main {
        min-height: 100vh; /* Prend toute la hauteur de l'écran */
        border-radius: 0; /* On enlève les bords arrondis */
        border: none; /* On enlève la bordure */
        background: var(--bg-color, #050505); /* Fond uni avec la page */
        box-shadow: none; /* Pas d'ombre nécessaire */
    }

    .auth-container {
        padding: 2.5rem 1.5rem; /* Marges intérieures adaptées au mobile */
        max-width: 100%; /* Prend toute la largeur disponible */
        justify-content: center;
    }

    /* Centrage des textes pour un rendu plus élégant sur mobile */
    .auth-logo {
        text-align: center;
        width: 100%;
        margin-bottom: 2.5rem;
    }

    .auth-container h2 {
        text-align: center;
        font-size: 2rem;
    }

    .auth-subtitle {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .form-group input {
        padding: 1.1rem; /* Légèrement réduit pour gagner de la place */
    }
}

/* Très petits écrans (Ex: iPhone SE) */
@media (max-width: 480px) {
    .auth-container {
        padding: 2rem 1.2rem;
    }
    
    .auth-container h2 {
        font-size: 1.8rem;
    }
}
