@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2a2e2f;
}
.login-box{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 440px;
    height: 480px;
    padding: 30px;
}
.login-header{
    text-align: center;
    margin: 20px 0 40px 0;
}
.login-header header{
    color: #d5cccc;
    font-size: 30px;
    font-weight: 600;
}

.input-box{
    color: #cbc9c9;
}

.input-box .input-field{
    width: 100%;
    height: 60px;
    font-size: 17px;
    padding: 0 25px;
    margin-bottom: 15px;
    border-radius: 30px;
    border: none;
    box-shadow: 0px 5px 10px 1px rgba(0,0,0, 0.05);
    outline: none;
    transition: .3s;
}
::placeholder{
    font-weight: 500;
    color: #807c7c;
}
.input-field:focus{
    width: 105%;
}
section{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

a{
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
section a{
    color: #555;
}
.input-submit{
    position: relative;
}
.submit-btn{
    width: 100%;
    max-width: 300px;
    padding: 15px;
    background-color: #111; /* Fond noir */
    color: #fff; /* Texte blanc */
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px; /* Bord arrondi */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    display: block;
    margin: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
.submit-btn:hover {
    background-color: #222; /* Assombri légèrement */
}
.submit-btn:active {
    transform: scale(0.95);
}

/* ? Style du conteneur */
.forgot-password {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    position: relative;
}

/* ? Style du lien */
.forgot-link {
    font-size: 14px;
    font-weight: bold;
    color: #e0dddd;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
}

/* ? Effet au survol */
.forgot-link:hover {
    color: #7e8286;
    text-decoration: underline;
}

.forgot-link:hover::after {
    width: 100%;
}

/* ? Meilleur ajustement sur mobile */
@media (max-width: 600px) {
    .forgot-link {
        font-size: 13px;
    }
}



.footer {
    text-align: center;  /* Centre le texte */
    font-size: 14px;
    color: #888;
    padding: 10px;
    background: #222;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}




.error-message {
    color: #ff4d4d;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ff4d4d;
    margin-top: 10px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation d'apparition fluide */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}








@media (max-width: 768px) {
    .login-box {
        width: 90%;
        height: auto; 
        padding: 20px;
    }
    .login-header header {
        font-size: 26px;
    }
    .input-box .input-field {
        height: 50px;
        font-size: 15px;
        padding: 0 20px;
    }
    .input-field:focus {
        width: 103%;
    }
    .submit-btn {
        height: 50px;
    }
    .sign-up-link {
        font-size: 14px;
    }
}


@media (max-width: 480px) {
    .login-box {
        width: 95%;
        padding: 15px;
    }
    .login-header header {
        font-size: 22px;
    }
    .input-box .input-field {
        height: 45px;
        font-size: 14px;
        padding: 0 15px;
    }
    .submit-btn {
        height: 45px;
    }
    .sign-up-link {
        font-size: 13px;
    }
}
