/* Styles communs aux pages d'accueil et de connexion joueur (maquette IPAJE) */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --jaune: #e7e115;
    --gris-logo: #595858;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    background: #1a1a1a;
}

/* Vidéo de fond plein écran, placée derrière le contenu.
   Le fond webp du body reste visible tant que la vidéo n'est pas chargée. */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Cadre très transparent aux bords arrondis qui entoure le contenu */
.cadre {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.titre {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

label,
.label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(40, 40, 50, 0.45);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: rgba(255, 255, 255, 0.6); }

input:focus {
    outline: none;
    border-color: var(--jaune);
    box-shadow: 0 0 0 3px rgba(231, 225, 21, 0.25);
}

/* Bouton jaune arrondi de la maquette */
.bouton {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--jaune);
    color: var(--gris-logo);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s;
}
.bouton:hover { filter: brightness(0.95); }
.bouton:disabled { opacity: 0.6; cursor: wait; }

.erreur {
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Logo IPAJE en bas à droite */
.logo {
    position: fixed;
    bottom: 1.75rem;
    right: 2rem;
    width: 220px;
    height: auto;
    pointer-events: none;
}

/* Lien discret vers l'espace animateurs */
.admin-link {
    position: fixed;
    bottom: 1.75rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: color 0.2s;
}
.admin-link:hover { color: #fff; }
