/* Style commun des pages simples (connexion, profil, accès refusé) : même ambiance verre que le tableau de bord. */
:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
}
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 16px; min-height: 100vh; color: var(--text-color);
    background: var(--bg-gradient); background-attachment: fixed; position: relative; overflow-x: hidden;
}
body::before, body::after {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    filter: blur(80px); z-index: -1; opacity: 0.3;
}
body::before { top: -50px; left: -50px; background: #4f46e5; }
body::after { bottom: -50px; right: -50px; background: #06b6d4; }

.centre { min-height: calc(100vh - 32px); display: flex; align-items: center; justify-content: center; }
.carte {
    width: 100%; max-width: 440px; padding: 28px; border-radius: 20px; margin: 0 auto 16px;
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.large { max-width: 640px; }
h1 { margin: 0 0 6px; font-size: 1.5rem; text-align: center; text-shadow: 0 2px 10px rgba(99, 102, 241, 0.4); }
h2 { margin: 0 0 12px; font-size: 1.05rem; }
.sous-titre { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 0 0 22px; }
label { display: block; margin: 14px 0 6px; font-size: 0.82rem; font-weight: 600; color: #cbd5e1; }
input[type="text"], input[type="password"] {
    width: 100%; padding: 13px 14px; font-size: 16px; color: #fff; outline: none;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-border); border-radius: 10px;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
button, .btn {
    display: inline-block; width: 100%; margin-top: 18px; padding: 13px 16px; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; color: #fff; text-align: center; text-decoration: none; cursor: pointer;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled { opacity: 0.6; cursor: default; }
.btn-secondaire { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-border); box-shadow: none; }
.barre { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 16px; }
.barre .btn { margin-top: 0; padding: 10px 14px; font-size: 0.9rem; }
.message { padding: 12px 14px; border-radius: 10px; margin: 14px 0 0; font-size: 0.9rem; }
.erreur { color: #fca5a5; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.45); }
.succes { color: #6ee7b7; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.45); }
.info { color: #fde68a; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.45); }
.ligne { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.92rem; }
.ligne:last-child { border-bottom: 0; }
.ligne span:first-child { color: var(--text-muted); }
.droits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.droit { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; background: rgba(99, 102, 241, 0.25); border: 1px solid rgba(129, 140, 248, 0.5); color: #c7d2fe; }
.aide { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; }
