/* ========================================
   AAA-Data — Custom Portal Theme
   ======================================== */

:root {
    --primary:  #1a2e4a;
    --accent:   #0078d4;
    --card-bg:  #ffffff;
    --text:     #2c3e50;
    --border:   #dee2e6;
    --radius:   10px;
    --shadow:   0 4px 24px rgba(0,0,0,0.15);
}

/* --- Override #wrap natif --- */
#wrap {
    padding: 0px 0 0px;
}

/* --- Header natif — supprimer espace --- */
#header {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    font-size: 0;
}

/* --- Header custom --- */
#custom-header {
    background-color: var(--primary);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    line-height: normal;
    font-size: 1rem;
}

#custom-header img {
    height: 40px;
}

/* --- Override #header img natif qui ajoute margin-bottom --- */
#header img {
    background-color: transparent !important;
    margin-bottom: 0 !important;
}

/* --- Page login — centrage --- */
#logincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 148px); /* 100vh - header(68px) - footer(80px) */
    padding: 20px;
    background: none;
}

/* --- Titre Connexion --- */
#custom-login-header {
    margin-bottom: 20px;
    text-align: center;
}

.login-title-custom {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
}

/* --- Login card --- */
#logincontent .card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    padding: 32px 36px;
    background: var(--card-bg);
}

/* --- Inputs --- */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,120,212,0.15);
    outline: none;
}

/* --- Bouton Se connecter --- */
#logincontent .btn-success {
    background-color: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 11px 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

#logincontent .btn-success:hover {
    background-color: var(--primary);
    color: white;
}

/* --- Bouton Créer un compte --- */
#logincontent .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 9px 0;
    width: 100%;
    font-size: 0.95rem;
    color: var(--accent);
    transition: all 0.2s;
}

#logincontent .btn-secondary:hover {
    background-color: var(--accent);
    color: white;
}

/* --- Messages --- */
#logincontent #errormsg,
#logincontent .alert {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* --- Footer --- */
#custom-footer,
#custom-login-footer {
    color: #888;
    font-size: 0.8rem;
    padding: 8px 0;
    text-align: center;
}