:root {
    --primary: #3e6cb6;
    --secondary: #40c5aa;
    --glass: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text: #2d3436;
}

body {
    margin: 0 !important;
    padding: 40px 0 !important; /* Donne de l'air en haut/bas */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    
    /* ON FORCE LE SCROLL ICI */
    height: auto !important;     /* On annule la hauteur fixe */
    min-height: 100vh !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Aligne en haut pour laisser la place au scroll */
    overflow-y: visible !important;   /* Force l'apparition du scroll */
    overflow-x: hidden !important;
}

/* Forme de fond décorative */
body::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: -1;
    filter: blur(50px);
    opacity: 0.5;
}

.login-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto !important; /* Force le centrage avec marge */
}

h2 {
    color: var(--primary);
    font-family: 'Aboreto', cursive;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 5px;
    margin-left: 5px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #dfe6e9;
    background: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(62, 108, 182, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 108, 182, 0.3);
}

.footer-links {
    margin-top: 25px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}