/* Central de Inteligência — auth surface (D-13).
 *
 * Hand-written, one file, no build step and no framework. The prototype's
 * identity is carried forward BY VALUE — the accent pair, the dark surface
 * stack, the radius scale, the uppercase field labels — not by copying its
 * markup, which was a 2,176-line inline-everything SPA.
 *
 * No stylesheet imports and no remote font: these pages run under a strict
 * default-src 'self' policy, so anything fetched from a third party would be
 * blocked. The system font stack is the deliberate substitute.
 */

:root {
  --accent: #E96997;
  --accent2: #E8517F;

  --bg: #0a0a0b;
  --surface: #0e0e10;
  --card: #1a1a1d;

  --text: #f5f5f6;
  --text-2: #b6b6bf;
  --muted: #8f8f98;

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --input-bg: rgba(255, 255, 255, 0.04);

  --radius: 14px;
  --radius-lg: 20px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The single keyboard-accessibility affordance these pages need. Visible,
   accent-coloured, and never removed — the prototype had one and it stays. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* --- Login ---------------------------------------------------------------- */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--surface) 0%, var(--bg) 70%);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.auth-logo {
  display: block;
  height: 30px;
  width: auto;
  margin-bottom: 22px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.12;
}

.lede {
  margin: 0 0 26px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

/* The wrong-credentials region. Rendered only when a message exists. */
.erro {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 105, 151, 0.45);
  border-radius: var(--radius);
  background: rgba(233, 105, 151, 0.10);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field input:focus {
  border-color: var(--accent);
  background: rgba(233, 105, 151, 0.07);
  box-shadow: 0 0 0 3px rgba(233, 105, 151, 0.16);
}

.btn-primary {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(232, 81, 127, 0.4);
}

.auth-links {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-secondary {
  display: block;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(233, 105, 151, 0.08);
  color: var(--text);
}

/* --- Authenticated landing ------------------------------------------------ */

.home {
  min-height: 100vh;
  padding: 24px 20px 48px;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-top form {
  margin: 0;
}

.btn-link {
  border: none;
  background: none;
  padding: 8px 4px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--accent);
}

.home-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
