:root {
  --brand: #1db954;
  --brand-hover: #22d35e;
  --bg-dark: #000000;
  --surface-gradient: linear-gradient(160deg, rgba(15,50,25,0.95) 0%, rgba(8,35,18,0.98) 100%);
  --border: rgba(255,255,255,0.08);
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-border: rgba(255, 255, 255, 0.2);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #000;
}

body {
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  /* BACKGROUND ROBUSTO */
  background-image: url('/Img/backweb.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  body {
    background-image: url('/Img/backmobile.png');
  }
}

/* Auth Wrapper */
.auth-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  height: 100%;
}

/* CARD */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: cardIn 0.5s ease-out;
  max-height: 95dvh;
  overflow-y: auto;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.logo-img {
  height: 48px;
  margin-bottom: 12px;
}
.auth-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  color: #fff;
}
.auth-legal {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}
.auth-legal strong {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.auth-legal-mini {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}

/* Inputs */
.input-group {
  margin-bottom: 14px;
  position: relative;
}
.auth-input {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: white;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.auth-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.15);
}

/* SELECTS - INTEGRADOS COM O DESIGN */
select.auth-input {
  background-color: var(--input-bg) !important;
  color: white !important;
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
select.auth-input option {
  background-color: #082312; /* Fundo escuro combinando com o card */
  color: white;
}

/* Botão */
.auth-btn {
  width: 100%;
  background-color: var(--brand);
  color: white;
  font-weight: 700;
  border: none;
  padding: 14px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  letter-spacing: 0.025em;
  margin-top: 8px;
  box-shadow: 0 10px 15px -3px rgba(29, 185, 84, 0.2);
}
.auth-btn:hover {
  background-color: var(--brand-hover);
}
.auth-btn:active {
  transform: scale(0.97);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary Button */
.auth-btn-secondary {
  background-color: rgba(255,255,255,0.1);
  color: white;
  box-shadow: none;
}
.auth-btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Checkbox */
.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  cursor: pointer;
}
.checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.checkbox-box.checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.checkbox-label {
  font-size: 12px;
  color: var(--text-muted);
}
.checkbox-label a {
  color: #fff;
  text-decoration: underline;
}

.auth-link-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}
.auth-link-text a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.forgot-pw-link {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transition: color .2s ease, opacity .2s ease;
}
.forgot-pw-link:hover,
.forgot-pw-link:focus-visible {
  color: #72ff9b;
  outline: none;
}

/* Grid */
.input-row { display: flex; gap: 12px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* QR Code */
.qr-box { background: #fff; padding: 16px; border-radius: 20px; margin: 0 auto 20px; width: fit-content; }
.qr-code-text { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: 16px; border-radius: 12px; font-size: 12px; word-break: break-all; margin-bottom: 16px; text-align: center; }

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
}
.password-toggle svg { width: 20px; height: 20px; }

.hidden { display: none !important; }

/* Tags container and badges styles */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag {
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.2);
  color: #1db954;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: successBounce 0.3s ease;
}
.tag-remove {
  color: #f87171;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}
.tag-add-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #1db954;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}
.tag-add-btn:hover {
  background: #19a34a;
}

/* Animated Checkmark Success box */
.success-animated-box {
  background: rgba(29,185,84,0.1);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 25px;
  box-shadow: 0 10px 30px rgba(29, 185, 84, 0.4);
  border: 2px solid rgba(29, 185, 84, 0.3);
  animation: successBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkmark-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.8s 0.3s ease forwards;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes successBounce {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Nova pele TeAcheiZAP 2026: mantém a estrutura dos formulários antigos */
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 185, 84, .28), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(0, 200, 59, .22), transparent 24%),
    linear-gradient(135deg, rgba(0,0,0,.72), rgba(0,0,0,.42)),
    url('/assets/zoe-hero.png') center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 22px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 164px 164px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.auth-wrapper {
  justify-content: flex-end;
  align-items: center;
  padding: 38px max(28px, 7vw);
}

.auth-wrapper::before {
  content: "";
  position: fixed;
  left: max(28px, 7vw);
  top: 50%;
  z-index: 1;
  width: min(560px, 42vw);
  height: clamp(74px, 7vw, 112px);
  transform: translateY(-82%);
  background: url('/assets/Logo.png') center / contain no-repeat;
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.46));
}

.auth-wrapper::after {
  content: "Cadastro e acesso direto para quem quer aparecer no WhatsApp.";
  position: fixed;
  left: max(28px, 7vw);
  top: calc(50% + clamp(44px, 5.2vw, 86px));
  z-index: 1;
  width: min(560px, 42vw);
  color: rgba(255,255,255,.76);
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
}

.auth-login .auth-wrapper::after {
  content: "Entre para acompanhar seus contatos, plano e atendimento direto no WhatsApp.";
}

.auth-card {
  position: relative;
  z-index: 2;
  max-width: 470px;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(29,185,84,.22), transparent 28%),
    linear-gradient(180deg, rgba(6,20,11,.92), rgba(2,8,4,.96));
  box-shadow: 0 34px 100px rgba(0,0,0,.58), 0 0 0 1px rgba(29,185,84,.04);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.auth-card::before {
  content: "";
  display: block;
  height: 6px;
  width: 64px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.logo-img {
  height: 42px;
  margin-bottom: 14px;
}

.auth-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.auth-input {
  min-height: 52px;
  border-radius: 999px;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  padding: 0 18px;
  font-size: 15px;
}

.auth-input:focus {
  border-color: rgba(29,185,84,.72);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(29,185,84,.12);
}

.auth-btn {
  min-height: 54px;
  border-radius: 999px;
  background: #00c83b;
  color: #061109;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 18px 44px rgba(0, 200, 59, .28);
}

.auth-btn:hover {
  background: #1cff69;
}

.plan-card {
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.plan-card.selected {
  border-color: #00c83b;
  background: rgba(0,200,59,.12);
  box-shadow: 0 16px 34px rgba(0,200,59,.12);
}

.auth-link-text {
  margin-top: 22px;
}

.auth-legal-mini {
  color: rgba(255,255,255,.42);
  font-weight: 500;
}

.tz-static-cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 100000;
  display: none;
  width: min(1440px, calc(100% - 36px));
  transform: translateX(-50%);
  border-radius: 18px;
  background: #eeeeee;
  color: #171717;
  padding: 22px 24px;
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
}

.tz-static-cookie.show {
  display: block;
}

.tz-static-cookie h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.tz-static-cookie p {
  max-width: 1120px;
  margin: 0 0 14px;
  color: #303030;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.tz-cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 2px 0 20px;
}

.tz-cookie-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
}

.tz-cookie-options input {
  width: 18px;
  height: 18px;
  accent-color: #050505;
}

.tz-cookie-actions {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
}

.tz-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.tz-cookie-links a {
  color: #111;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.tz-cookie-actions button {
  min-height: 44px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.tz-cookie-actions button.primary {
  background: #050505;
  color: #fff;
}

@media (max-width: 920px) {
  html, body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
    background-attachment: scroll;
  }

  body::before {
    inset: 10px;
    border-radius: 18px;
    background-size: 92px 92px;
  }

  .auth-wrapper {
    height: auto;
    min-height: 100svh;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 94px 14px calc(26px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .auth-wrapper::before {
    top: 22px;
    left: 22px;
    width: min(220px, calc(100vw - 44px));
    height: 48px;
    transform: none;
    background-position: left center;
  }

  .auth-wrapper::after {
    display: none;
  }

  .auth-card {
    max-width: 520px;
    max-height: none;
    overflow: visible;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-input,
  select.auth-input,
  textarea.auth-input,
  input[type="time"].auth-input {
    min-height: 50px;
    font-size: 16px;
  }

  .auth-btn {
    min-height: 52px;
    font-size: 13px;
  }

  .tz-static-cookie {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 18px;
  }

  .tz-cookie-actions {
    grid-template-columns: 1fr;
  }

  .tz-cookie-actions button {
    width: 100%;
  }
}
