/* ═══ CADASTRO — Fruit Money ═══ */
:root {
  --cad-orange: #ff6b35;
  --cad-orange-dark: #e63900;
  --cad-gold: #ffd700;
  --cad-gold-soft: #ffd080;
  --cad-bg: #1a0f0a;
  --cad-border: rgba(255, 180, 80, 0.32);
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.page-cadastro {
  overflow-x: hidden;
  background: var(--cad-bg);
  min-height: 100dvh;
}

.cadastro-app {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

.cadastro-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #2a1810;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) brightness(0.58) contrast(1.05);
}

.cadastro-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 15%, rgba(255, 140, 60, 0.12) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(36, 20, 12, 0.82) 0%,
      rgba(28, 16, 10, 0.88) 50%,
      rgba(18, 10, 6, 0.94) 100%
    );
}

.cadastro-bg-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgba(255, 180, 60, 0.1) 0%, transparent 40%);
}

.cadastro-main {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

.cadastro-card {
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--cad-border);
  background:
    linear-gradient(165deg, rgba(255, 107, 53, 0.1) 0%, rgba(18, 10, 6, 0.92) 42%, rgba(12, 7, 5, 0.96) 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(255, 107, 53, 0.12);
  backdrop-filter: blur(14px);
}

.cadastro-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.cadastro-logo {
  display: block;
  margin: 0 auto 0.85rem;
  max-width: min(180px, 72vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  background: transparent;
}

.cadastro-tagline {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
  margin: 0 auto;
}

.cadastro-tagline strong {
  color: var(--cad-gold-soft);
  font-weight: 800;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cadastro-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cadastro-field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.78);
}

.cadastro-field input {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cadastro-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cadastro-field input:focus {
  outline: none;
  border-color: rgba(255, 180, 80, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.cadastro-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.15rem 0;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.cadastro-terms input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  accent-color: var(--cad-orange);
  cursor: pointer;
}

.cadastro-terms-link {
  border: none;
  padding: 0;
  background: none;
  color: var(--cad-gold-soft);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cadastro-msg {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffb4a9;
  text-align: center;
  margin: 0;
}

.cadastro-msg.hidden {
  display: none;
}

.cadastro-submit {
  width: 100%;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  padding: 14px;
}

.cadastro-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cadastro-foot {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
}

.cadastro-foot-link {
  color: var(--cad-gold-soft);
  font-weight: 700;
  text-decoration: none;
}

.cadastro-foot-link:hover {
  text-decoration: underline;
}

/* Modal termos */
.cadastro-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cadastro-modal.hidden {
  display: none;
}

.cadastro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cadastro-modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: min(82vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--cad-border);
  background: rgba(22, 12, 8, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.cadastro-modal__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cad-gold-soft);
  margin-bottom: 0.75rem;
}

.cadastro-modal__body {
  flex: 1;
  overflow-y: auto;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0.85rem;
  padding-right: 0.25rem;
}

.cadastro-modal__close {
  width: 100%;
  font-size: 0.88rem;
}

@media (min-width: 480px) {
  .cadastro-card {
    padding: 1.65rem 1.5rem 1.35rem;
  }

  .cadastro-tagline {
    font-size: 1rem;
  }
}
