/* login.css (version mise à jour) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    /* Couleurs du thème Neumorphisme Clair */
    --bg-color: #e0e5ec;
    --text-dark: #4a4a4a;
    --text-light: #898989;
    --shadow-light: rgba(255, 255, 255, 0.8); /* Pour le reflet haut à gauche */
    --shadow-dark: rgba(160, 164, 170, 0.6);   /* Pour l'ombre bas à droite */
    --orange-color: #ff7f50; /* Un orange corail moderne */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login {
    width: 100%;
    max-width: 400px; 
    padding: 40px 30px;
    border-radius: 25px;
    
    /* L'effet d'ombre Neumorphisme */
    background: var(--bg-color);
    box-shadow: 
        9px 9px 16px var(--shadow-dark), 
        -9px -9px 16px var(--shadow-light);
        
    display: flex;
    flex-direction: column;
    
    /* Animation douce */
    animation: fadeIn 0.8s ease-out;
}

/* --- MODIFICATION ICI : Ajout de margin-bottom pour descendre le bouton --- */
.login input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    outline: none;
    border-radius: 15px;
    
    box-shadow: 
        3px 3px 7px var(--shadow-dark), 
        -3px -3px 7px var(--shadow-light);
        
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    
    transition: all 0.3s ease;
    margin-bottom: 20px; /* <--- AJOUTÉ : espace en bas pour faire descendre le bouton */
}

.login input::placeholder {
    color: var(--text-light);
}

.login input:focus {
    box-shadow: inset 3px 3px 7px var(--shadow-dark), 
                inset -3px -3px 7px var(--shadow-light);
}

/* Style du bouton orange (resté inchangé) */
.login button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background-color: var(--orange-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    
    box-shadow: 
        5px 5px 10px var(--shadow-dark), 
        -5px -5px 10px var(--shadow-light);
        
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.login button:hover {
    transform: translateY(-2px); 
    box-shadow: 
        6px 6px 12px var(--shadow-dark), 
        -6px -6px 12px var(--shadow-light);
}

.login button:active {
    transform: translateY(1px);
    background-color: #e06d43; 
    box-shadow: inset 3px 3px 7px var(--shadow-dark), 
                inset -3px -3px 7px var(--shadow-light);
}

@media (max-width: 480px) {
    .login {
        width: 90%;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .login input, 
    .login button {
        font-size: 0.95rem;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 12px; /* Ajustement léger sur mobile */
    }
}

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