/* auth-custom.css - Style exact pour correspondre à l'image */

/* Reset et base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body et arrière-plan */
.homepage5-body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper principal */
.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Section de login */
.login-content {
    background: transparent !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.login-content .row {
    background: transparent !important;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content .col-md-12 {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    padding: 20px;
}

/* Conteneur de la carte */
.auth-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Carte principale - Style exact de l'image */
.card.shadow-gold {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: none !important;
    max-width: 380px !important;
    width: 100% !important;
    margin: 0 auto !important;
    animation: slideIn 0.5s ease-out;
    position: relative;
}

/* Corps de la carte */
.card-body {
    padding: 30px !important;
    text-align: center !important;
    position: relative;
}




/* Titre principal */
h2.text-center {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 20px 0 8px 0 !important;
    line-height: 1.2;
}

/* Sous-titre */
.text-muted {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 25px !important;
    font-weight: 400;
}

/* Labels */
.form-label {
    display: block !important;
    text-align: right !important;
    margin-bottom: 6px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Suppression des icônes et groupes d'input */
.input-group {
    display: block !important;
}

.input-group-text {
    display: none !important;
}

/* Champs de saisie - Style exact de l'image */
.form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 25px !important;
    background-color: #f5f5f5 !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    text-align: right !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus {
    background-color: #f0f0f0 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #999 !important;
    font-size: 14px !important;
    font-weight: 400;
}

/* Espacement des champs */
.mb-4 {
    margin-bottom: 16px !important;
}

        /* Section Remember Me et Forgot Password - Modifié pour affichage */
        .d-flex.justify-content-between {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            margin-bottom: 20px !important;
        }

        /* Style pour Remember Me */
        .form-check {
            display: flex !important;
            align-items: center !important;
        }

        .form-check-input {
            margin-left: 8px !important;
            margin-right: 0 !important;
            accent-color: #c19a6b !important;
        }

        .form-check-label {
            color: #333 !important;
            font-size: 13px !important;
            cursor: pointer;
        }

        /* Lien mot de passe oublié */
        .forgot-password-link {
            color: #c19a6b !important;
            text-decoration: none !important;
            font-size: 13px !important;
            transition: color 0.3s ease !important;
        }

        .forgot-password-link:hover {
            color: #b8916b !important;
            text-decoration: underline !important;
        }


/* Bouton principal - Style exact de l'image */
.btn-custom {
    background: linear-gradient(45deg, #c19a6b, #d4af8c) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: white !important;
    width: 100% !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    outline: none !important;
    box-shadow: 0 2px 10px rgba(193, 154, 107, 0.3) !important;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #b8916b, #c49a7a) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(193, 154, 107, 0.4) !important;
    color: white !important;
}

.btn-custom:active, .btn-custom:focus {
    background: linear-gradient(45deg, #c19a6b, #d4af8c) !important;
    color: white !important;
    outline: none !important;
}



.card-body::after:hover {
    color: #333;
}
        .register-link {
            color: #c19a6b !important;
            text-decoration: none !important;
            font-weight: 500 !important;
            transition: color 0.3s ease !important;
            margin-right: 5px !important;
        }

        .register-link:hover {
            color: #b8916b !important;
            text-decoration: underline !important;
        }

        .register-text {
            color: #000 !important;
            font-size: 14px !important;
            margin-bottom: 0 !important;
        }
/* Messages d'erreur */
.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 15px !important;
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
    font-size: 13px !important;
    text-align: center !important;
}

.invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
    font-size: 12px !important;
    text-align: right !important;
    margin-top: 5px !important;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card.shadow-gold {
        max-width: 340px !important;
        margin: 20px !important;
    }

    .card-body {
        padding: 25px 20px !important;
    }

    .navbar-brand::before,
    .card-body::before {
        width: 45px;
        height: 45px;
    }

    .navbar-brand::after {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin: 0 10px;
    }

    h2.text-center {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .card.shadow-gold {
        max-width: 320px !important;
        margin: 15px !important;
    }

    .card-body {
        padding: 20px 15px !important;
    }
}

/* Corrections pour RTL */
[dir="rtl"] .form-control {
    text-align: right !important;
}

[dir="rtl"] .form-label {
    text-align: right !important;
}

/* Masquer les éléments non nécessaires */
.card-transparent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Style des placeholders spécifiques */
input[placeholder=""] {
    color: transparent !important;
}

input[placeholder=""]:focus {
    color: #333 !important;
}
