:root {
  --brand: #7c3aed;
  --brand-2: #8b5cf6;
  --ink: #0b1020;
  --muted: #5f6184;
  --line: #deddea;
  --panel: #ffffff;
  --soft: #f8f7fb;
  --lavender: #f1ecff;
  --shadow: 0 18px 50px rgba(38, 28, 85, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 251, 0.86);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 880px);
  min-height: 56px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.18rem;
  font-weight: 900;
}

.brand svg,
.legal-title svg,
.cta-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.22);
}

.hero {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 78px 0 96px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--lavender);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(3rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--brand);
}

.hero p {
  width: min(100%, 620px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.section {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 18px 0 72px;
}

.section-head {
  margin-bottom: 38px;
  text-align: center;
}

.section-head h2,
.cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p,
.cta p {
  width: min(100%, 440px);
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.025);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lavender);
  color: var(--brand);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.cta {
  width: min(100% - 32px, 880px);
  margin: 26px auto 78px;
  border: 1px solid #d8c6ff;
  border-radius: 20px;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08), transparent 34%),
    var(--lavender);
  text-align: center;
}

.cta-icon {
  display: inline-flex;
  margin-bottom: 14px;
}

.legal-page {
  width: min(100% - 32px, 790px);
  margin: 0 auto;
  padding: 22px 0 42px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 650;
}

.legal-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.legal-title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.updated {
  margin: 8px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  margin: 30px 0 14px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--brand);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, 880px);
  min-height: 96px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand {
  color: #4f4477;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--brand);
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 26%, rgba(124, 58, 237, 0.08), transparent 26%),
    linear-gradient(135deg, #f7faff, #f3f5f8);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.login-card {
  position: relative;
  width: min(100%, 390px);
  border-radius: 22px;
  padding: 38px 32px 32px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.login-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #eef2ff);
}

.login-back {
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.login-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 2px auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #8b5cf6, transparent 34%),
    linear-gradient(135deg, #2f2448, #5d3d78);
  color: #f9a8d4;
  box-shadow: 0 18px 34px rgba(47, 36, 72, 0.30);
  font-size: 2.6rem;
}

.login-card h1 {
  margin: 0;
  color: #141b2f;
  text-align: center;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.login-card > p {
  margin: 12px 0 18px;
  color: #63708a;
  text-align: center;
  font-weight: 700;
}

.login-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid #dbe2ee;
  border-radius: 14px;
  background: #f8fafc;
}

.login-mode-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-weight: 850;
}

.login-mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.google-login,
.login-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 850;
}

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #dbe2ee;
  background: #fff;
  color: #334155;
}

.google-g {
  color: #4285f4;
  font-size: 1.1rem;
  font-weight: 950;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: #8a96aa;
}

.login-divider span {
  height: 1px;
  background: #dbe2ee;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #1f2937;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.input-shell {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 44px;
  border: 1px solid #dbe2ee;
  border-radius: 12px;
  padding: 0 12px;
  text-align: left;
}

.input-shell i {
  color: #8ea0bc;
  font-style: normal;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.login-submit {
  border: 0;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.login-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 0.8rem;
}

.login-message[data-type="error"] {
  color: #dc2626;
}

.login-message[data-type="success"] {
  color: #059669;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.76rem;
}

.login-links button,
.login-links a {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.login-links strong {
  color: #111827;
}

.reset-actions {
  display: grid;
  gap: 10px;
}

.reset-form[hidden] {
  display: none;
}

#name-field[hidden] {
  display: none;
}

.google-login[hidden],
.login-divider[hidden],
.login-form[hidden],
.login-links button[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-actions,
  .legal-footer {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 14px;
  }
}

/* Tema visual alinhado a area logada da Helena */
:root {
  --brand: #a78bfa;
  --brand-2: #7c3aed;
  --brand-3: #22d3ee;
  --ink: #f8fbff;
  --muted: #aeb9d6;
  --line: rgba(190, 202, 255, 0.16);
  --panel: rgba(18, 23, 43, 0.72);
  --soft: #070914;
  --lavender: rgba(167, 139, 250, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.34), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 26%),
    radial-gradient(circle at 76% 88%, rgba(167, 139, 250, 0.18), transparent 34%),
    linear-gradient(135deg, #070914 0%, #0b1020 48%, #040713 100%);
}

.site-header,
.site-footer {
  background: rgba(7, 9, 20, 0.80);
}

.brand,
.section-head h2,
.cta h2,
.legal-title h1,
.legal-content h2 {
  color: var(--ink);
}

.btn {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 16px 44px rgba(167, 139, 250, 0.28);
}

.badge,
.feature-icon {
  border: 1px solid var(--line);
  background: var(--lavender);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(167, 139, 250, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(18, 23, 43, 0.82), rgba(18, 23, 43, 0.46));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.cta {
  border-color: rgba(167, 139, 250, 0.30);
  background:
    radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.20), transparent 34%),
    linear-gradient(145deg, rgba(167, 139, 250, 0.12), rgba(34, 211, 238, 0.06));
  box-shadow: var(--shadow);
}

.footer-brand {
  color: var(--muted);
}

.login-body {
  background:
    radial-gradient(circle at 50% 18%, rgba(167, 139, 250, 0.24), transparent 26%),
    radial-gradient(circle at 12% 78%, rgba(34, 211, 238, 0.08), transparent 28%),
    linear-gradient(135deg, #070914, #0b1020);
}

.login-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 23, 43, 0.94), rgba(18, 23, 43, 0.74));
  box-shadow: var(--shadow);
}

.login-card h1,
.login-form label,
.login-links strong {
  color: var(--ink);
}

.login-card > p,
.login-links,
.login-divider {
  color: var(--muted);
}

.google-login,
.input-shell {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.login-mode-switch {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.login-mode-switch button {
  color: var(--muted);
}

.login-mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.34);
}

.input-shell input {
  color: var(--ink);
}

.login-submit {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
