@import url('https://fonts.googleapis.com/css2?family=Rammetto+One&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #0f172a;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Boîte de connexion */
.login-box {
    background: #1e293b;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    width: 100%;
    margin-bottom: 20px;
}

/* En-tête */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Rammetto One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
}

.login-header h2 {
    margin: 10px 0;
    color: #e2e8f0;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
}

/* Formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #4285F4;
    font-size: 16px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #334155;
    border-radius: 6px;
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Bouton de bascule du mot de passe supprimé */

/* Case à cocher "Se souvenir de moi" */
.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #4285F4;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4285F4;
    border-color: #4285F4;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Bouton de connexion */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 24px;
    display: block;
}

.login-button:hover {
    background-color: #3b7cff;
}

.login-button:active {
    transform: translateY(1px);
}

/* Pied de page */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

.login-footer a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Lien mot de passe oublié */
.forgot-password {
    color: #4285F4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Version */
.version {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: 20px;
    padding: 10px 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 28px;
    }
}
