body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    /* ✅ Image de fond */
    background: url("../images/background.png") no-repeat center center fixed;
    background-size: cover;

    /* Overlay sombre pour lisibilité */
    position: relative;
}
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* assombrit l’image */
    backdrop-filter: blur(2px);
    z-index: 0;
}

.form-container {
    position: relative;
    z-index: 1; /* au-dessus du background */
    background: rgba(255, 255, 255, 0.95);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
}

h1 { margin: 0 0 10px; font-size: 24px; color: #0f172a; }
p { color: #475569; font-size: 14px; }

.field { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-weight: 600; color:#334155; }
input, select {
    width: 100%; padding: 10px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px;
}

.hint { display:block; color:#94a3b8; font-size:12px; margin-top:6px; }

.btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 8px;
    background: #2563eb; color: #fff;
    font-weight: bold; cursor: pointer;
}
.btn:hover { background: #1d4ed8; }

.alert { padding: 10px; margin-bottom: 12px; border-radius: 6px; font-size: 14px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }

.switch { margin-top: 14px; font-size: 14px; }
.switch a { color: #2563eb; text-decoration: none; }
