/* Portal admin TEX — estilo autossuficiente espelhando o TEX Design System.
   Sem JS; cantos quadrados, amarelo+grafite, hazard. */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@600;700;800&family=Roboto:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --tex-yellow: #F2E500; --tex-yellow-deep: #E6D300;
  --tex-green: #3FBF7B; --tex-green-deep: #2E9A60;
  --ink-900: #1A1C1B; --ink-800: #26282A; --ink-700: #2D2F31; --ink-600: #44484B;
  --ink-500: #6B6F73; --ink-400: #9CA0A4; --ink-300: #C4C7CA; --ink-200: #E2E4E6;
  --ink-100: #F1F2F3; --ink-050: #F7F8F8; --paper: #FFFFFF;
  --danger: #C8362B; --warning: #F2A20C; --info: #2C6FB5;
  --font-display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --font-heading: "Barlow Condensed", "Bebas Neue", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-body); color: var(--ink-200);
  background: var(--ink-900); line-height: 1.5; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
a { color: var(--info); }
::selection { background: var(--tex-yellow); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--tex-yellow); outline-offset: 2px; }

.hazard { height: 8px; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--tex-yellow) 0 18px, var(--ink-900) 18px 36px); }

.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding: 0 24px; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.10); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand b { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; color: var(--paper); font-weight: 400; }
.brand b i { font-style: normal; color: var(--tex-green); }
.brand span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-400); }

main { flex: 1; display: flex; flex-direction: column; }

/* ── Tela de login/forms centralizada ── */
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.card { width: 100%; max-width: 420px; background: var(--ink-800); border: 1px solid rgba(255,255,255,.10); }
.card .pad { padding: 32px; }
.card.wide { max-width: 960px; }

.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--tex-yellow); margin: 0 0 8px; }
h1.title { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 30px; line-height: 1.05; color: var(--paper); margin: 0; }
h2.sub { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; color: var(--paper); margin: 0; }
p.muted { color: var(--ink-400); font-size: 14px; }

form { margin: 0; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-300); margin-bottom: 6px; }
.field input[type="email"], .field input[type="password"], .field input[type="text"] {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
  color: var(--paper); background: var(--ink-900); border: 1px solid var(--ink-600);
  transition: border-color 120ms var(--ease-out);
}
.field input:focus { outline: 2px solid var(--tex-yellow); outline-offset: 1px; border-color: var(--ink-900); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-300); }
.check input { width: 16px; height: 16px; accent-color: var(--tex-green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body);
  font-weight: 700; font-size: 15px; padding: 13px 26px; cursor: pointer; border: 0; text-decoration: none;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tex-yellow); color: var(--ink-900); }
.btn-primary:hover { background: var(--tex-yellow-deep); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.row-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.links { margin-top: 18px; display: flex; justify-content: space-between; font-size: 14px; }
.links a { color: var(--ink-300); text-decoration: none; }
.links a:hover { color: var(--tex-yellow); }

.alert { margin-top: 18px; padding: 12px 14px; border-left: 3px solid; font-size: 14px; }
.alert-error { border-color: var(--danger); background: rgba(200,54,43,.12); color: #F3B6B1; }
.alert-ok { border-color: var(--tex-green); background: rgba(63,191,123,.12); color: #BFEAD3; }
.alert-info { border-color: var(--info); background: rgba(44,111,181,.12); color: #B9D2EC; }

/* ── Dashboard ── */
.dash { padding: 40px 24px 64px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid { margin-top: 28px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }
.app-card { background: var(--ink-800); border: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; }
.app-card .pad { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.app-card .tag { font-family: var(--font-mono); font-size: 12px; color: var(--tex-green); }
.app-card h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 24px; color: var(--paper); margin: 8px 0 0; }
.app-card p { color: var(--ink-400); font-size: 14px; margin: 10px 0 0; }
.app-card .go { margin-top: auto; padding-top: 22px; }
.divider { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.10); padding-top: 28px; }

footer.foot { border-top: 1px solid rgba(255,255,255,.10); }
footer.foot .wrap { padding: 18px 24px; font-size: 12px; color: var(--ink-500); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
