@font-face {
    font-family: 'Nohemi';
    src: url('../fonts/Nohemi-VF.ttf') format('truetype-variations');
    font-weight: 100 900; 
    font-style: normal; 
    font-display: swap;
}

html { height: 100%; }
body {
    margin: 0;
    font-family: 'Nohemi', Arial, sans-serif;
    font-weight: 400; 
    line-height: 1.6;
    background-color: #0a0a0a;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(45deg, rgba(200,200,200,0.02) 25%, transparent 25%, transparent 75%, rgba(200,200,200,0.02) 75%), linear-gradient(45deg, rgba(200,200,200,0.01) 25%, transparent 25%, transparent 75%, rgba(200,200,200,0.01) 75%) 2px 2px; background-size: 4px 4px; z-index: -1; opacity: 0.3; pointer-events: none; }
h1 { font-weight: 700; }
a { text-decoration: none; color: #bb86fc; }

.bouton-principal {
    font-family: 'Nohemi', Arial, sans-serif; 
    display: inline-block; padding: 10px 25px; border-radius: 20px; 
    font-size: 1em; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; text-decoration: none; text-align: center; cursor: pointer;
    background-color: #ffffff; color: #1e1e1e; border: 1px solid #ffffff;
    transition: all 0.4s ease;
}
.bouton-principal:hover { background-image: linear-gradient(to right, #bb86fc, #8e44ad); background-color: transparent; color: #ffffff; border-color: transparent; transform: translateY(-2px); }

.principal-connexion {
    flex-grow: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.section-connexion {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background-color: #121212;
    border-radius: 10px;
    border: 1px solid #222;
    box-sizing: border-box;
}

.entete-connexion {
    text-align: center;
    margin-bottom: 30px;
}
.entete-connexion h1 { font-size: 2.5em; margin: 0 0 10px 0; color: #ffffff; }
.entete-connexion p { font-size: 1.1em; color: #cccccc; margin: 0; }

.formulaire-connexion .groupe-formulaire {
    margin-bottom: 20px;
}
.formulaire-connexion label { display: block; margin-bottom: 8px; font-weight: 500; color: #e0e0e0; }
.formulaire-connexion input[type="text"],
.formulaire-connexion input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: #1f1f1f;
    border: 1px solid #444;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Nohemi', Arial, sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.formulaire-connexion input[type="text"]:focus,
.formulaire-connexion input[type="password"]:focus {
    outline: none;
    border-color: #bb86fc; 
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2); 
}

.formulaire-connexion .bouton-principal {
    width: 100%;
    margin-top: 10px;
}

.message-formulaire { padding: 15px; margin-bottom: 20px; border-radius: 5px; font-weight: 500; text-align: center; border: 1px solid transparent; }
.message-formulaire.succes { background-color: rgba(40, 200, 64, 0.2); border-color: #28c840; color: #28c840; }
.message-formulaire.erreur { background-color: rgba(255, 95, 87, 0.2); border-color: #ff5f57; color: #ff5f57; }

.lien-bas-formulaire {
    text-align: center;
    margin-top: 25px;
}
.lien-bas-formulaire a {
    color: #888;
    font-size: 0.9em;
    text-decoration: underline;
    transition: color 0.3s;
}
.lien-bas-formulaire a:hover {
    color: #eee;
}