/* ============ TOKENS ============ */
:root {
  --accent: #19C2AE;
  --accent-2: #3DE0CE;

  --bg: #EEF2F6;
  --surface: #FFFFFF;
  --surface-2: #F5F8FA;
  --ink: #101826;
  --ink-soft: #46536B;
  --ink-faint: #8593A8;
  --line: #DCE3EC;
  --field: #F4F7FA;
  --field-line: #D3DCE7;
  --danger: #E5484D;
  --ok: #17B67C;

  --hero-bg: #070C16;
  --hero-bg-2: #0C1526;
  --hero-ink: #EAF1FB;
  --hero-soft: #93A4C0;
  --hero-line: rgba(255,255,255,.09);

  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.4,.05,.15,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080D17; --surface: #0F1826; --surface-2: #131F30;
    --ink: #EAF1FB; --ink-soft: #9EAEC7; --ink-faint: #667693;
    --line: rgba(255,255,255,.09); --field: #0C1523; --field-line: rgba(255,255,255,.12);
  }
}
:root[data-theme="dark"] {
  --bg: #080D17; --surface: #0F1826; --surface-2: #131F30;
  --ink: #EAF1FB; --ink-soft: #9EAEC7; --ink-faint: #667693;
  --line: rgba(255,255,255,.09); --field: #0C1523; --field-line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============ SHELL ============ */
.shell { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
@media (max-width: 940px) { .shell { grid-template-columns: 1fr; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 15% 0%, var(--hero-bg-2), var(--hero-bg) 60%);
  color: var(--hero-ink); overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette { position: absolute; inset: 0;
  background: radial-gradient(80% 55% at 70% 60%, transparent, rgba(4,8,16,.55)); pointer-events: none; }
.hero > * { position: relative; z-index: 2; }

.brand { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 50px; height: 50px; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent)); }
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.05; }
.brand-tag { font-size: 12px; color: var(--hero-soft); font-family: "JetBrains Mono", monospace; letter-spacing: .2px; }

.hero-body { margin-top: auto; margin-bottom: auto; max-width: 30rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-2); padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--hero-line); background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
h1.headline {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -1.6px;
  text-wrap: balance; margin: 24px 0 18px;
}
h1.headline em { font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--hero-soft); font-size: 16px; line-height: 1.6; max-width: 46ch; }

.feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.feats li { display: flex; align-items: center; gap: 12px; color: var(--hero-ink); font-size: 14.5px; font-weight: 500; }
.feats .ic { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.feats .ic svg { width: 13px; height: 13px; color: var(--accent); }

.stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.stat .n { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.5px; }
.stat .l { font-size: 11px; color: var(--hero-soft); margin-top: 2px;
  font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .6px; }

.hero-foot { display: flex; align-items: center; gap: 9px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--hero-soft); }
.hero-foot svg { width: 15px; height: 15px; color: var(--accent); }

/* ============ PANEL / FORM ============ */
.panel { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.form-card { width: 100%; max-width: 390px; }

.form-head h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 27px; letter-spacing: -.7px; margin: 0 0 7px; }
.form-head p { margin: 0 0 24px; color: var(--ink-soft); font-size: 14.5px; }
.form-head b { color: var(--ink); font-weight: 600; }

form { display: flex; flex-direction: column; gap: 15px; }

.field { position: relative; }
.field input {
  width: 100%; background: var(--field); border: 1.5px solid var(--field-line);
  border-radius: var(--radius-sm); padding: 21px 15px 8px;
  font: 500 15px "Manrope", sans-serif; color: var(--ink); outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .3s;
}
.field input:hover { border-color: var(--accent); }
.field input:focus { border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--surface); }
.field label { position: absolute; left: 16px; top: 15px; color: var(--ink-faint); font-size: 15px; pointer-events: none; transition: all .16s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  top: 7px; font-size: 11px; letter-spacing: .3px; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.field .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--ink-faint); padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.field .toggle-pw:hover { color: var(--ink); background: var(--surface-2); }
.field .toggle-pw svg { width: 19px; height: 19px; }

.row-between { display: flex; align-items: center; justify-content: space-between; margin: -3px 0 5px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--field-line); display: grid; place-items: center; transition: all .15s var(--ease); background: var(--field); }
.box svg { width: 12px; height: 12px; color: #05121a; opacity: 0; transform: scale(.5); transition: all .15s var(--ease); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.link { color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.link:hover { text-decoration: underline; }

.btn { position: relative; border: 0; cursor: pointer; padding: 15px; border-radius: var(--radius-sm);
  font: 700 15px "Manrope", sans-serif; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.btn-primary { color: #05121a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); }
.arr { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn-primary:hover .arr { transform: translateX(3px); }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--ink-faint); letter-spacing: .2px; }
.secure svg { width: 13px; height: 13px; color: var(--ok); }

/* ---- Alerta de error ---- */
.alert { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px;
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert svg { width: 18px; height: 18px; flex: none; }

/* ---- OTP ---- */
.otp-input { text-align: center; letter-spacing: 12px; font-family: "JetBrains Mono", monospace !important;
  font-size: 24px !important; padding: 18px 15px !important; }
.otp-hint { font-size: 12.5px; color: var(--ink-faint); text-align: center; margin-top: 4px; }

/* ---- Controles superiores ---- */
.controls { position: absolute; top: 20px; right: 20px; z-index: 20; display: flex; gap: 8px; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 10px; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; transition: all .15s var(--ease); }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.sun { display: none; } .moon { display: block; }
:root[data-theme="dark"] .sun { display: block; } :root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: block; }
  :root:not([data-theme="light"]) .moon { display: none; }
}

/* ---- Panel post-login (placeholder) ---- */
.dash { max-width: 720px; margin: 0 auto; padding: 60px 24px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.dash h1 { font-family: "Bricolage Grotesque", sans-serif; font-size: 32px; letter-spacing: -1px; margin: 0 0 8px; }
.dash .muted { color: var(--ink-soft); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

.focus-ring:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 940px) {
  .hero { min-height: 340px; }
  .stats { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
