/* Arkdium OS — identidade visual arkdium.dev (docs/06-ux-ui.md)
   Tokens extraídos do site institucional: vermelho Arkdium sobre preto,
   Space Grotesk para títulos, Inter para texto. */
:root {
  --red:        #c81010;
  --red-deep:   #850606;
  --red-soft:   #e24a4a;
  --bg:         #060606;
  --bg-card:    #111114;
  --line:       rgba(255, 255, 255, .08);
  --text:       #f4f4f5;
  --muted:      #9a9aa2;
  --success:    #7fd1a8;
  --radius:     16px;
  --maxw:       1140px;
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
  --font-head:  "Space Grotesk", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, sans-serif;
  --space-1:    8px;
  --space-2:    16px;
  --space-3:    24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }

a { color: var(--red-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─────────────────────────────────────────────── */
.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-2);
}

.topnav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px var(--space-3);
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.topnav .brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.topnav .brand span { color: var(--red-soft); }
.topnav nav { display: flex; gap: var(--space-2); flex: 1; }
.topnav nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.topnav nav a:hover { color: var(--text); background: rgba(255,255,255,.04); text-decoration: none; }
.topnav nav a.active { color: var(--text); }
.topnav .who { color: var(--muted); font-size: 0.85rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: var(--space-3); }

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card--login { width: min(420px, 92vw); }
.card h1 { font-size: 1.5rem; margin: 0 0 var(--space-1); }
.card p.sub { color: var(--muted); margin: 0 0 var(--space-3); }

/* ─── Forms ──────────────────────────────────────────────── */
label { display: block; font-size: 0.9rem; margin-bottom: var(--space-1); color: var(--muted); }

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: var(--space-2);
  transition: border-color 150ms var(--ease-out);
}
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 1px;
  border-color: transparent;
}
input.otp { letter-spacing: 10px; font-size: 1.5rem; text-align: center; }

/* ─── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.button:hover { background: var(--red-soft); text-decoration: none; }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.6; cursor: wait; }

.button--small { width: auto; padding: 8px 14px; font-size: 0.85rem; }
.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.button--ghost:hover { background: rgba(255,255,255,.04); }
.button--danger { background: transparent; border: 1px solid var(--red-deep); color: var(--red-soft); }
.button--danger:hover { background: var(--red-deep); color: #fff; }

/* ─── Tables ─────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
td form { display: inline; }

/* ─── Badges & messages ──────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--gerente { color: var(--red-soft); border-color: var(--red-deep); }
.badge--ok { color: var(--success); border-color: rgba(127, 209, 168, .35); }

.msg { margin-top: var(--space-2); font-size: 0.9rem; min-height: 1.2em; }
.msg--error { color: var(--red-soft); }
.msg--ok { color: var(--success); }

.section-title { margin: var(--space-3) 0 var(--space-2); font-size: 1.2rem; }
.grid { display: grid; gap: var(--space-2); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; gap: var(--space-2); align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.row > .button { flex: 0 0 auto; }
.muted { color: var(--muted); }

/* ─── Progress bar (horas — F5) ──────────────────────────── */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
  margin-top: var(--space-2);
}
.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--red-soft);
  transition: width 400ms var(--ease);
}
.progress__bar--warn { background: #e2b84a; }
.progress__bar--danger { background: var(--red); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .button, .topnav nav a, input, select { transition: none; }
}
