@font-face {
    font-family: "Scriptina Pro";
    src: url("../fonts/ScriptinaPro.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* -----------------------
   Structure générale
----------------------- */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* empêche le scroll */
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh; /* optionnel si tu veux exclure header/footer */
    position: relative;
}

/* Arrière-plan mosaïque */
.login-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: grid;
    grid-template-areas:
        "a a b"
        "c d b"
        "c d e";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0px;
}

/* Images sans arrondis et avec opacité */
.bg-photo {
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bg1 { grid-area: a; }
.bg2 { grid-area: b; }
.bg3 { grid-area: c; }
.bg4 { grid-area: d; }
.bg5 { grid-area: e; }

/* Contenu principal centré verticalement */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    height: auto;
}

/* Message d’intro */
.login-message {
    text-align: center;
    margin-bottom: 20px;
    z-index: 2;
}

.login-message h1 {
    font-size: 2em;
    color: #333;
    line-height: 1.4;
}

/* -----------------------
   Formulaire
----------------------- */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
    backdrop-filter: blur(8px); /* effet verre dépoli */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    margin: 0 auto;
    z-index: 2;
}

/* Formulaire orange à l'intérieur */
.login-container form {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    
    background: transparent;
    
    box-sizing: border-box;
    height: auto;
}

/* Champs du formulaire */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Bouton connexion */
.login-container button {
    display: block;
    width: 100%;
    padding: 14px 0;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    background-color: var(--fuchsia);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #7f0837; /* fuchsia plus foncé */
}

/* -----------------------
   Responsive
----------------------- */
@media (max-width: 1200px) {
    .login-message h1 {
        font-size: 1.6em;
    }

    .login-container {
        max-width: 90%;
        padding: 15px;
    }

    .login-container form {
        padding: 15px;
    }

    .login-container button {
        font-size: 1.1em;
        padding: 12px 0;
    }

    .login-background {
        grid-template-areas:
            "d d a"
            "b c a"
            "b e e";
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, minmax(100px, 1fr));
        gap: 5px;
    }

    .bg-photo {
        background-size: cover;
        background-position: center;
        width: 100%;
        height: 100%;
    }

    .home-content {
        position: relative;
        z-index: 10;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin-top: 30%;
    }
    
}

