/* Login Form Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
    padding: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.login-form {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: none;
}

.login-form h1 {
    background: linear-gradient(90deg, #faadc7 0%, #e0c3f0 40%, #55c7f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #f6f8fa;
    color: #22223b;
}
/*m*/
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border: 1.5px solid #e0e7ef;
    background: #fff;
    box-shadow: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(45deg, #faadc7, #e0c3f0, #55c7f6);
    border: none;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group label {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

/* Nouveau layout pour remember me et mot de passe oublié */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.remember-me label {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    display: flex;
    align-items: center;
}

.forgot-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mb-3 {
    margin-bottom: 1rem;
    text-align: center;
}

.mb-3 a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.mb-3 a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-form {
        padding: 1.2rem;
    }
    
    .login-form h1 {
        font-size: 1.2rem;
    }
    .submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Nouveau gradient principal */
:root {
    --main-gradient: linear-gradient(45deg, #faadc7, #e0c3f0, #55c7f6);
}

/* Style du bouton submit harmonisé */
.submit-btn {
    position: relative;
    background: linear-gradient(45deg, #faadc7, #e0c3f0, #55c7f6);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
    z-index: 1;
    display: block;
    margin: 40px auto 0;
    box-shadow: 0 2px 8px rgba(90, 90, 150, 0.15);
}

.submit-btn::before {
    display: none;
}

.submit-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(90, 90, 150, 0.25);
}

.submit-btn:focus {
    outline: 2px solid #d1a8e0;
    outline-offset: 2px;
}

/* Supprimer les anciens styles de gradient sur .submit-btn si présents */
.btn,
.btn-primary {
    background: var(--main-gradient);
    color: #fff;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(234, 174, 199, 0.12), 0 2px 8px rgba(85, 199, 246, 0.10);
    transition: all 0.2s, box-shadow 0.3s;
}

.btn:hover, .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(234, 174, 199, 0.18), 0 6px 24px rgba(85, 199, 246, 0.15);
    transform: translateY(-2px) scale(1.03);
}

.login-form .gradient-title {
    background: linear-gradient(90deg, #faadc7 0%, #e0c3f0 40%, #55c7f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
