@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


@font-face {
    font-family: 'MinecraftTitles';
    src: url('MinecraftTen-VGORe.ttf') format('truetype');
}

/* login.css - Styles spécifiques à la page de connexion */

/* Base et conteneur */
body.login-page {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: #333;
    background-image: url('images/BACK.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    background-color: rgba(0, 128, 0, 0.5);
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-family: 'MinecraftTitles', sans-serif;
    text-shadow: 1px 1px 2px #000;
}

nav a:hover {
    background-color: #34495e;
    color: #fff;
}

/* Conteneur de connexion */
.login-container {
    background-color: rgba(255, 255, 255, 0.92);
    border: 4px solid #5a3e12;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

/* Titre */
.login-container h1 {
    font-family: 'MinecraftTitles', sans-serif;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #4CAF50;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Formulaire */
.login-container .form-group {
    margin-bottom: 1.5rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'MinecraftTitles', sans-serif;
    color: #2c3e50;
    font-size: 0.9rem;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.9rem;
    border: 3px solid #8B8B8B;
    background-color: #f5f5f5;
    font-family: 'Press Start 2P';
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3), inset 0 1px 3px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* Case à cocher "Se souvenir de moi" */
.form-group.remember {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.form-group.remember input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.form-group.remember label {
    font-family: 'Press Start 2P';
    color: #2c3e50;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

/* Bouton de connexion */
.form-actions {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: #3e8e41;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Message d'erreur */
.error {
    color: #e74c3c;
    font-family: 'Press Start 2P';
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}