/* auth.jobernojoseph.me: the app's own colors (navy #1a1a2e, panels #2d2d44, green #2ecc71), the
   app icon, French text, no decoration. Buttons answer a press; nothing else moves. */
:root {
  --bg: #1a1a2e;
  --panel: #2d2d44;
  --line: #3d3d54;
  --text: #c8cad6;
  --muted: #9ea3bb;
  --white: #ffffff;
  --green: #2ecc71;
  --green-dark: #25a85c;
  --danger: #f08a80;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); font-weight: 600; }
h1 { color: var(--white); margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.center { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.panel { width: min(440px, 100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 19px; margin-bottom: 28px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.sub { color: var(--muted); margin: 8px 0 24px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 15px; color: var(--white); }
.hint { font-weight: 400; color: var(--muted); font-size: 13.5px; }
input, select { font: inherit; color: var(--white); min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color 160ms ease; }
input:focus, select:focus { outline: none; border-color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; font: 700 17px "Inter", system-ui, sans-serif; color: var(--bg); background: var(--green); text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.outline { background: transparent; color: var(--white); border: 2px solid var(--line); }
.button.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--green-dark); }
  .button.outline:hover { background: transparent; border-color: var(--green); }
}
.error { color: var(--danger); min-height: 1.4em; margin: 0; font-size: 15px; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; text-align: center; }

/* Account and users pages */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.topbar .brand { margin: 0; }
.content { width: min(1040px, 100% - 32px); margin: 36px auto 60px; }
.content h1 { font-size: clamp(28px, 4vw, 36px); }
.content .card { margin-top: 20px; }
.who { display: flex; align-items: center; gap: 16px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--green); font-weight: 800; font-size: 22px; flex: none; }
.who strong { display: block; color: var(--white); font-size: 19px; }
.who span { color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--green); font-size: 13px; font-weight: 700; vertical-align: middle; }
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--white); background: var(--bg); transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.links a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .links a:hover { border-color: var(--green); } }
.grid-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 10px 10px; }
td { padding: 14px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td strong { color: var(--white); display: block; }
td small { display: block; color: var(--muted); }
td input, td select { min-height: 42px; font-size: 15px; width: 100%; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.blocked { color: var(--danger); font-weight: 700; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .button, .links a { transition: none; } }
@media (max-width: 800px) {
  .grid-form { grid-template-columns: 1fr; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { border-top: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 6px 0; }
}
