/* Connexion ABC Digital Touch : mêmes couleurs et polices que le tableau de bord (dashboard/ui/theme.py). */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("dm-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 700; font-display: swap; src: url("syne-700.woff2") format("woff2"); }

:root {
  --ink: #06060A; --ink-2: #0B0B11; --ink-3: #13131E;
  --bg: #F5F5F8; --card: #FFFFFF; --border: #E8E8F0; --text: #0B0B11; --muted: #6B6B7E;
  --primary: #1A6FFF; --primary-lift: #4A8CFF; --negative: #DC2626; --positive: #16A34A;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 48px 16px 24px;
}
.card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 20px;
        overflow: hidden; box-shadow: 0 12px 40px rgba(6, 6, 10, .08); }
.brand { background: var(--ink-2); padding: 26px 32px 22px; display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; display: block; }
.body { padding: 28px 32px 30px; }
h1 { font-family: "Syne", "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 111, 255, .15); }
input[readonly] { background: var(--bg); color: var(--muted); }
.field { position: relative; }
.toggle { position: absolute; right: 10px; top: 9px; border: 0; background: transparent; color: var(--muted); font: inherit;
          font-size: 12px; cursor: pointer; padding: 4px 6px; }
button.primary, a.button {
  display: block; text-align: center; text-decoration: none; box-sizing: border-box;
  width: 100%; font: inherit; font-weight: 600; font-size: 15px; color: #fff; background: var(--primary); border: 0;
  border-radius: 999px; padding: 13px 18px; cursor: pointer; transition: background .15s;
}
button.primary:hover, a.button:hover { background: var(--primary-lift); }
button.primary:disabled { opacity: .6; cursor: progress; }
.link { display: inline-block; margin-top: 16px; color: var(--primary); font-size: 14px; text-decoration: none; background: none;
        border: 0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
.link:hover { text-decoration: underline; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 12px; margin: -10px 0 16px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin: 0 0 18px; }
.alert.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert.info { background: #EFF5FF; color: #0A3FA8; border: 1px solid #C9DBFF; }
.alert.success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
           margin: 18px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
footer { margin-top: 22px; color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { body { padding-top: 20px; } .body, .brand { padding-left: 22px; padding-right: 22px; } }
