html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Arrière-plan vidéo */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 1; 
    object-fit: cover; 
}

/* Formulaire de connexion en verre dépoli (Glassmorphism) */
form {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 340px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

form h1 {
    font-size: 26px;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

form h2 {
    font-size: 16px;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

form div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

input[type="name"],
input[type="password"] {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

input[type="name"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="name"]:focus,
input[type="password"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

input[type="submit"] {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.85);
}

input[type="submit"]:active {
    transform: scale(0.98);
}