body {
    background: url("https://images.unsplash.com/photo-1552566626-52f8b828add9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Plus Jakarta Sans", sans-serif;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.login-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
}

.login-header {
    background: #ffffff;
    padding: 40px 30px 20px;
    text-align: center;
}

.logo-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

.logo-box i {
    color: white;
    font-size: 30px;
}

.brand-name {
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 24px;
}

.btn-login {
    background: #1e293b;
    border: none;
    color: white;
    font-weight: 600;
    padding: 16px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: #ff8c00;
}

.form-control {
    border-radius: 12px;
    padding: 26px 16px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Utilisation de tes couleurs sur le focus */
.form-control:focus {
    border-color: #ff8c00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.label-custom {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* L'étoile rouge pour les champs obligatoires */
.required-star {
    color: #d32f2f;
    /* Ton rouge spécifique */
    margin-left: 3px;
}

.forgot-password-link {
    font-size: 13px;
    color: #64748b;
    /* Un gris bleuté élégant */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #ff8c00;
    /* Ton orange Jaak au survol */
    text-decoration: underline;
    /* Optionnel : pour bien montrer que c'est cliquable */
}

.position-relative {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #ff8c00;
    /* Ton orange au survol */
}

/* On ajuste un peu le padding droit de l'input pour que le texte ne passe pas sous l'oeil */
#password {
    padding-right: 45px !important;
}

/* Style personnalisé pour les messages d'erreur sous l'input */
.invalid-feedback-custom {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #d32f2f; /* Ton rouge professionnel */
    font-weight: 600;
    display: block;
}

/* Bordure rouge sur l'input en cas d'erreur */
.form-control.is-invalid {
    border-color: #d32f2f !important;
    background-image: none; /* Retire l'icône d'erreur par défaut de bootstrap pour garder ton oeil */
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1) !important;
}
