/* ===== STYLES POUR LA PAGE DE CONNEXION ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc url('/assets/images/baobab-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.85);
    z-index: -1;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.auth-header {
    background: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flag-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    height: 50px;
    width: 100px;
    margin: 0 auto 1rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flag-stripe {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-stripe.green {
    background: #00853f;
}

.flag-stripe.yellow {
    background: #fcd116;
    color: #000;
}

.flag-stripe.red {
    background: #ce1126;
}

.flag-star {
    font-size: 1.2rem;
    color: #00853f;
    text-shadow: 0 0 10px rgba(0, 133, 63, 0.5);
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.header-text p {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.seal-mini {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seal-mini i {
    font-size: 1.5rem;
    color: #fcd116;
    text-shadow: 0 0 20px rgba(252, 209, 22, 0.5);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.login-header p {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== MESSAGE D'ERREUR ===== */
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fca5a5;
    font-weight: 500;
}

.error-message i {
    font-size: 1.2rem;
}

/* ===== FORMULAIRE ===== */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.form-group label i {
    font-size: 1rem;
    color: #fcd116;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    outline: none;
    border-color: #fcd116;
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.2);
}

.form-group.focused label {
    color: #fcd116;
}

/* ===== BOUTON DE CONNEXION ===== */
.login-submit-btn {
    width: 100%;
    background: #1e293b;
    color: #ffffff;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    background: #334155;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.login-submit-btn:active {
    transform: scale(0.98);
}

/* ===== IDENTIFIANTS DE DÉMONSTRATION ===== */
.demo-credentials {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.demo-credentials h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fcd116;
    text-align: center;
}

.credential-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.credential-item strong {
    color: #fcd116;
}

/* ===== LIEN RETOUR ===== */
.back-link {
    text-align: center;
}

.back-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #fcd116;
    transform: translateX(-5px);
}

/* ===== FOOTER ===== */
.auth-footer {
    background: #f1f5f9;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    font-size: 0.9rem;
    color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-main {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .form-group input {
        padding: 0.8rem;
    }
    
    .login-submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .demo-credentials {
        padding: 1rem;
    }
    
    .credential-item {
        font-size: 0.8rem;
    }
}




