/**
 * ACSN — núcleo visual unificado (login, início, pedidos).
 * Tokens + páginas simples. Pedidos carrega também acsn-pedidos.css.
 */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body.acsn-login,
body.acsn-hub {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.acsn-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.acsn-login-wrap {
  width: 100%;
  max-width: 400px;
}

.acsn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.acsn-card-head {
  margin: 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.acsn-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
}

.acsn-login h1,
.acsn-hub h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.acsn-login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.acsn-login input[type="text"],
.acsn-login input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.acsn-login input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.acsn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.acsn-btn--primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.acsn-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.acsn-btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.acsn-btn--secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.acsn-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1.25rem;
  text-align: center;
}

.acsn-foot a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.acsn-foot a:hover {
  text-decoration: underline;
}

.acsn-err {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.acsn-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.acsn-hint code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Hub (index) */
body.acsn-hub {
  padding: 0;
}

.acsn-hub-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.acsn-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.acsn-hub-top .acsn-hub-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acsn-hub-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.acsn-hub-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.acsn-hub-card .acsn-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.acsn-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.acsn-hub-actions .acsn-btn {
  width: 100%;
}

.acsn-hub-actions .acsn-btn--ghost {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent);
}

.acsn-hub-actions .acsn-btn--ghost:hover {
  border-color: var(--accent);
  background: #dbeafe;
}
