:root {
    --brand-color: #95091D;
    --brand-hover: #7b0718;
    --bg-main: #0f172a;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 20%, rgba(149, 9, 29, 0.25) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(30, 41, 59, 0.8) 0px, transparent 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-card {
    max-width: 440px;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: var(--card-bg);
}

.brand-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.sub-title {
    color: var(--text-muted);
}

.form-label {
    color: #334155;
    font-size: 0.875rem;
}

.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(149, 9, 29, 0.15);
}

.btn-brand {
    background-color: var(--brand-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(149, 9, 29, 0.39);
    transition: all 0.2s ease-in-out;
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(149, 9, 29, 0.45);
}

.btn-brand:active {
    transform: translateY(0);
}

.logo-container {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 10px 15px;
}

.logo-img {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* ==========================================================================
   AJOUT DU LOGIQUE RESPONSIVE (Mobiles & Tablettes)
   S'active uniquement si la largeur d'écran est inférieure à 576px
   ========================================================================== */
@media (max-width: 575.98px) {
    .login-card {
        border-radius: 16px;
        padding: 1.25rem !important; /* Réduit légèrement le rembourrage interne sur mobile */
    }

    .brand-title {
        font-size: 1.25rem; /* Réduit la taille du titre pour éviter qu'il ne passe sur 3 lignes */
    }

    .logo-img {
        max-height: 60px; /* Réduit la hauteur du logo pour préserver la hauteur d'affichage */
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.65rem 0.85rem;
    }

    .btn-brand {
        padding: 0.7rem 0.85rem;
    }
}