/* Page de connexion */

.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
    border-radius: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(30, 50, 70, 0.15);
    position: relative;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    height: 40px;
    width: auto;
}

/* Titre */
.login-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1E3246;
    text-align: center;
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin: 0 0 30px 0;
}

/* Message d'erreur */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 10px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.login-error svg {
    flex-shrink: 0;
}

/* Formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1E3246;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    color: #999999;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #1E3246;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
    color: #999999;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
}

.login-form input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999999;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #1E3246;
}

/* Options du formulaire */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -5px;
}

/* Checkbox personnalisée */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #666666;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.remember-me:hover .checkmark {
    border-color: var(--primary-color);
}

.remember-me input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

/* Lien mot de passe oublié */
.forgot-password {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Bouton de connexion */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #b02a1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer de la carte */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1E3246;
}

/* Décoration */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: #1E3246;
    bottom: -100px;
    left: -50px;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    bottom: 50px;
    right: -30px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 25px;
    }

    .login-title {
        font-size: 28px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
