/* styles.css à placer dans /css/ */

/* ===== Styles communs ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Fond pleine page pour index/login : fallback image si vidéo non supportée */
body.background-full {
    background: url('../assets/images/background_idev.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* utile si besoin de caler des éléments relatifs à la page */
    overflow: hidden;   /* évite d'éventuels scrolls dûs à la vidéo fixée */
}

/* ===== Vidéo plein écran en arrière-plan ===== */
.back-video {
    position: fixed;   /* couvre tout l'écran, reste derrière le contenu */
    inset: 0;          /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    object-fit: cover; /* recadre la vidéo comme background-size:cover */
    z-index: -1;       /* sous le contenu */
    filter: brightness(0.8); /* optionnel: assombrit légèrement pour lisibilité */
}

/* Logo */
.logo-container img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Bouton principal (utilisé aussi sur login) */
.btn-login {
    display: inline-block;
    background-color: #10abbb;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 18px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-login:hover {
    background-color: #0e8490;
}

/* ===== Styles pour login.php ===== */
/* Titre du formulaire */
.login-title {
    text-align: center;           
    margin-bottom: 20px;          
    font-size: 24px;              
    color: #ffffff;               
}

/* Conteneur de formulaire centré */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;    /* plein écran */
    margin: 0;
    padding: 0;
    flex-direction: column;
    background: none;
    position: relative; /* au-dessus de la vidéo */
    z-index: 1;
}

.form-container form {
    width: 320px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 6px;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); /* lisibilité sur fond vidéo */
}

.form-container form label {
    display: block;
    margin-bottom: 8px;
}

.form-container form input[type="text"],
.form-container form input[type="password"],
.form-container form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.form-container form button {
    background-color: #10abbb;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container form button:hover {
    background-color: #0e8490;
}