120 lines
2.5 KiB
CSS
120 lines
2.5 KiB
CSS
/* --- Body --- */
|
|
body {
|
|
font-family: 'Segoe UI', Roboto, Arial, sans-serif;
|
|
background-color: #f3f0f9;
|
|
color: #333;
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center; /* CENTRAGE VERTICAL */
|
|
}
|
|
|
|
/* --- Header fixe violet --- */
|
|
nav {
|
|
background: linear-gradient(135deg, #6a11cb, #8e2de2);
|
|
color: #fff;
|
|
padding: 15px 30px;
|
|
display: flex;
|
|
justify-content: flex-start; /* Accueil à gauche */
|
|
align-items: center;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
z-index: 1000;
|
|
}
|
|
|
|
nav a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
nav a:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* --- Conteneur du formulaire et du titre --- */
|
|
.login-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-top: 80px; /* espace pour nav fixe */
|
|
}
|
|
|
|
/* --- Titre Connexion --- */
|
|
.login-container h1 {
|
|
color: #5b1dbb;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Formulaire centré --- */
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
background: #fff;
|
|
padding: 40px 30px;
|
|
border-radius: 10px;
|
|
border: 1px solid #e0d4f7;
|
|
box-shadow: 0 3px 6px rgba(0,0,0,0.08);
|
|
width: 90%;
|
|
max-width: 400px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Inputs --- */
|
|
form input[type="text"],
|
|
form input[type="password"] {
|
|
padding: 12px 15px;
|
|
border: 1px solid #dcd0f5;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
form input[type="text"]:focus,
|
|
form input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: #8e2de2;
|
|
box-shadow: 0 0 5px rgba(142,45,226,0.5);
|
|
}
|
|
|
|
/* --- Bouton Se connecter --- */
|
|
form button {
|
|
padding: 12px;
|
|
background: linear-gradient(135deg, #6a11cb, #8e2de2);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease, transform 0.2s ease;
|
|
}
|
|
|
|
form button:hover {
|
|
background: linear-gradient(135deg, #8e2de2, #6a11cb);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* --- Footer violet --- */
|
|
footer {
|
|
background: #6a11cb;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 15px 0;
|
|
width: 100%;
|
|
box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
|
|
font-size: 0.95rem;
|
|
position: fixed;
|
|
bottom: 0;
|
|
}
|