/* ==========================================================================
   CONNEXION PAGE - STYLE ÉLÉGANT & CENTRAGE PREMIUM
   ========================================================================== */
:root {
    --primary: #e94560;
    --primary-gradient: linear-gradient(135deg, #e94560 0%, #c31432 100%);
    --bg-light: #f4f7f6;
    --card-white: #ffffff;
    --text-dark: #2d3436;
    --text-grey: #636e72;
    --border-soft: #edf2f7;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Centrage total pour un look application mobile/web pro */
body {
    background-color: var(--bg-light);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;      
    justify-content: center;   
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding: 20px;            
    box-sizing: border-box;
}

html {
    height: -webkit-fill-available;
}

/* La carte de connexion */
.login-card {
    width: 100%;
    max-width: 400px; /* Plus compact = plus élégant */
    padding: 50px 40px;
    border-radius: 30px;
    background: var(--card-white);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-soft);
    animation: fadeIn 0.8s ease-out;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h1 {
    text-align: center;
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-grey);
    margin: 0 0 35px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Formulaire */
form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    margin-left: 5px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    background: #f9fbfb;
    border: 1.5px solid var(--border-soft);
    color: var(--text-dark);
    border-radius: 15px;
    outline: none;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

/* Bouton Connexion Style Pilule */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.2);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(233, 69, 96, 0.3);
}

/* Footer (Inscription / Retour) */
.footer-links {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-soft);
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 25px;
        border-radius: 24px;
    }
}
