/* 🌍 Reset des marges et styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

/* 🌌 Fond de page */
body {
    background-image: url('/img/logo_bg.png'); /* ← ajuste le chemin si besoin */
    background-size: contain;       /* L’image s’adapte sans être rognée */
    background-repeat: no-repeat;   /* Ne pas répéter */
    background-position: center;    /* Centrer */
    background-color: #1c1c1c;      /* Couleur de fond de secours */
    background-attachment: fixed;

    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 📦 Conteneur du formulaire */
.login-container {
    background: rgba(255, 255, 255, 0.9); /* au lieu de 'white' */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* 📝 Titre */
h2 {
    margin-bottom: 20px;
    color: #333;
}

/* 📥 Inputs */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

input:focus {
    border-color: #2b5876;
    outline: none;
    box-shadow: 0 0 5px rgba(43, 88, 118, 0.5);
}

/* 🔘 Bouton */
.btn {
    width: 100%;
    background: #2b5876;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background: #4e4376;
}

/* 🚀 Effet d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🖥️ Responsive design */
@media (max-width: 500px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
}
