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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #faf9f5;
}

/* ── Left panel ──────────────────────────────────────────────────────────── */
.login-left {
    width: 420px;
    background: #225159;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    flex-shrink: 0;
}
@media (max-width: 768px) { .login-left { display: none; } }

.login-left .brand { margin-bottom: 40px; }
.login-left .brand h1 { font-size: 1.4rem; font-weight: 700; }
.login-left .brand p  { font-size: 0.85rem; opacity: 0.7; margin-top: 4px; }

.login-left h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    opacity: 0.85;
    line-height: 1.5;
}
.feature-list li::before {
    content: '✓';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.feature-list.arrows li::before { content: '→'; }

/* ── Right panel ─────────────────────────────────────────────────────────── */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}
.login-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #225159;
    margin-bottom: 6px;
}
.login-box p.subtitle {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 32px;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #333;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: #2e7d7d;
    box-shadow: 0 0 0 3px rgba(46,125,125,0.12);
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 13px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, box-shadow 0.15s;
    margin-top: 6px;
    background: #2e7d7d; /* client par défaut */
}
.btn-login:hover {
    background: #256868;
    box-shadow: 0 4px 16px rgba(46,125,125,0.25);
}
.btn-login.btn-admin { background: #225159; }
.btn-login.btn-admin:hover {
    background: #1a3f45;
    box-shadow: 0 4px 16px rgba(34,81,89,0.2);
}

/* ── Footer link ─────────────────────────────────────────────────────────── */
.login-footer {
    margin-top: 24px;
    font-size: 0.82rem;
    color: #aaa;
    text-align: center;
}
.login-footer a { color: #2e7d7d; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* ── Flash ───────────────────────────────────────────────────────────────── */
.flash {
    padding: 11px 14px;
    border-radius: 7px;
    margin-bottom: 20px;
    font-size: 0.87rem;
}
.flash-error   { background: #fde8e8; color: #c62828; border: 1px solid #ef9a9a; }
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
