/* ═══════════════════════════════════════
   OBSIDIAN & WHATSAPP GLASS — Shared theme
   Used in: cadastro, login, termos, privacidade, reembolso,
            sucesso, esqueci-senha, redefinir-senha
   ═══════════════════════════════════════ */

:root {
  --black: #000000;
  --obsidian: #0c0c0c;
  --surface: #111111;
  --surface-2: #161616;

  --green: #25D366;
  --green-dark: #1da851;
  --green-glow: rgba(37, 211, 102, 0.3);
  --green-subtle: rgba(37, 211, 102, 0.08);

  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --blue-subtle: rgba(59, 130, 246, 0.08);

  --white: #ebebeb;
  --white-60: rgba(235, 235, 235, 0.6);
  --white-30: rgba(235, 235, 235, 0.3);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 0.75rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-full: 9999px;

  --transition: cubic-bezier(0.4, 0, 0.2, 1);

  --erro: #ff6464;
  --ok: #25D366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

/* grid pattern background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--white-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* glow spheres atmosphere */
body::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--green); text-decoration: none; transition: color 0.3s var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════
   TOP NAV — minimal
   ═══════════════════════════════════════ */
.nav-min {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-min .nav-brand {
  display: flex;
  align-items: center;
}
.nav-min .nav-brand img {
  height: 28px;
  width: auto;
}
.nav-min .nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.nav-min .nav-links a {
  color: var(--white-60);
}
.nav-min .nav-links a:hover {
  color: var(--green);
}

/* ═══════════════════════════════════════
   AUTH PAGES (cadastro, login, reset)
   ═══════════════════════════════════════ */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-logo img {
  height: 28px;
  width: auto;
}
.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--white);
}
.auth-card .sub {
  color: var(--white-60);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* form fields */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.3s var(--transition);
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  background: rgba(37, 211, 102, 0.05);
}
.field input::placeholder {
  color: var(--white-30);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--transition);
  cursor: pointer;
  border: none;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 0 30px var(--green-glow);
}
.btn-primary:hover {
  transform: scale(1.03);
  color: var(--black);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.4);
}
.btn-ghost {
  background: var(--white-05);
  color: var(--white);
  border: 1px solid var(--white-10);
}
.btn-ghost:hover { background: var(--white-10); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* form msg */
.form-msg {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.form-msg.show { display: block; }
.form-msg.erro {
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.2);
  color: var(--erro);
}
.form-msg.ok {
  background: var(--green-subtle);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: var(--green);
}

.auth-foot {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--white-60);
}
.auth-foot a {
  color: var(--green);
  font-weight: 600;
}
.auth-foot a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════
   DOC PAGES (termos, privacidade, reembolso)
   ═══════════════════════════════════════ */
.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 2rem auto 4rem;
  padding: 3rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.doc h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.doc h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.doc .updated {
  color: var(--white-60);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.doc p {
  color: var(--white-60);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.doc strong { color: var(--white); font-weight: 600; }
.doc a { color: var(--green); }
.doc a:hover { color: var(--white); text-decoration: underline; }
.doc ul, .doc ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--white-60);
}
.doc li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
.doc em { color: var(--white-60); font-style: italic; }

.doc-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-05);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-30);
}

/* ═══════════════════════════════════════
   PAGE FOOTER (mini)
   ═══════════════════════════════════════ */
.page-foot {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--white-30);
}
.page-foot a { color: var(--white-60); }
.page-foot a:hover { color: var(--green); }

/* ═══════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ═══════════════════════════════════════ */
.whatsapp-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 0 30px var(--green-glow);
  transition: all 0.3s var(--transition);
}
.whatsapp-flutuante:hover {
  transform: scale(1.1);
}
.whatsapp-flutuante svg {
  width: 28px;
  height: 28px;
  fill: var(--black);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-min { padding: 1.25rem; }
  .nav-min .nav-links { gap: 1rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .auth-card h1 { font-size: 1.5rem; }
  .doc { padding: 2.25rem 1.5rem; margin: 1rem auto 3rem; }
  .doc h1 { font-size: 1.75rem; }
}
