/* ═══════════════════════════════════════════
   RESET GLOBAL
═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ═══════════════════════════════════════════
   PAGE LOGIN / REGISTER — CENTRAGE
═══════════════════════════════════════════ */
.login-container {
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    width: 100%;
    max-width: 460px;
}

.login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a3c6e;
    margin-bottom: 6px;
    text-align: center;
}

.login-card p {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════ */
.input-group {
    margin-bottom: 18px;
}

.input-group label,
.input-group h\:outputLabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a3c6e;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: #1a3c6e;
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.08);
}

/* ═══════════════════════════════════════════
   BOUTON PRINCIPAL
═══════════════════════════════════════════ */
.btn-primary {
    width: 100%;
    background: #1a3c6e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    display: block;
}

.btn-primary:hover {
    background: #0f2548;
}

/* ═══════════════════════════════════════════
   MOT DE PASSE OUBLIÉ
═══════════════════════════════════════════ */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.forgot-link {
    font-size: 13px;
    color: #1a3c6e;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ═══════════════════════════════════════════
   REMEMBER ME
═══════════════════════════════════════════ */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

/* ═══════════════════════════════════════════
   FOOTER LOGIN
═══════════════════════════════════════════ */
.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.create-account-link {
    color: #1a3c6e;
    font-weight: 700;
    text-decoration: none;
}

.create-account-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   LOGO
═══════════════════════════════════════════ */
.logo {
    display: block;
    margin: 0 auto 24px auto;
    width: 160px;
    height: auto;
    max-width: 100%;
}

/* ═══════════════════════════════════════════
   MESSAGES
═══════════════════════════════════════════ */
.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   DASHBOARD LAYOUT (sidebar + contenu)
═══════════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.main-content {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    background: #f1f5f9;
    position: relative;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 600px) {
    .login-card {
        padding: 28px 20px;
    }

    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════
   SELECT (rôle dans register)
═══════════════════════════════════════════ */
.form-control select,
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3c6e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Hint sous un champ */
.field-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: left;
}