/* ============================================================
   Página pública de cadastro (onboarding)
   ============================================================ */
:root{
  --af-black: #0a0a0a;
  --af-dark: #141414;
  --af-charcoal: #1e1e1e;
  --af-gray: #2a2a2a;
  --af-muted: #888;
  --af-light: #e5e5e5;
  --af-white: #fff;
  --af-accent: #c8c8c8;
  --af-green: #46a648;
}

html, body{ height: 100%; margin: 0; padding: 0; }
body{
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--af-black);
  color: var(--af-light);
}

.split{ display: flex; min-height: 100vh; }

/* HERO */
.hero{
  flex: 0 0 45%;
  background: var(--af-black);
  color: var(--af-white);
  padding: 60px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero__bg{
  position: absolute; inset: 0;
  background: url('../identidade_visual/fundo.jpg') center/cover no-repeat;
  opacity: 0.35;
}
.hero__bg::after{
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(70,166,72,0.45) 0%, transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(37,99,235,0.35) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.4) 50%, rgba(10,10,10,.85) 100%);
}
/* Brilho sutil animado atrás do content */
.hero__glow{
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 30% 60%, rgba(70,166,72,0.18) 0%, transparent 40%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow{
  from{ opacity:.6; transform:scale(1); }
  to{ opacity:1; transform:scale(1.1); }
}
.hero__brand{
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  animation: fadeInDown .9s ease-out;
}
.logo-wordmark{ display: flex; flex-direction: column; gap: 4px; }
.logo-wordmark__name{
  font-family: 'Outfit', sans-serif;
  font-weight: 700; letter-spacing: 8px; line-height: 1;
  font-size: 28px; color: var(--af-white);
}
.logo-wordmark__sub{
  font-size: 9px; letter-spacing: 6px;
  text-transform: uppercase; font-weight: 400; color: var(--af-muted);
}

.hero__content{
  position: relative; z-index: 2; max-width: 520px;
  animation: fadeInUp 1.2s ease-out .2s both;
}
.hero__eyebrow{
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--af-muted);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before{ content: ''; width: 32px; height: 1px; background: var(--af-muted); }
.hero__headline{
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300; line-height: 1.05;
  color: var(--af-white);
  margin: 0 0 28px; letter-spacing: -2px;
}
.hero__headline strong{ font-weight: 700; letter-spacing: 2px; }
.hero__lede{
  font-size: 15px; line-height: 1.7;
  color: var(--af-muted); max-width: 420px; margin: 0;
}

.hero__benefits{
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.benefit{
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--af-light);
}
.benefit svg{ color: var(--af-green); flex-shrink: 0; }

.hero__footer{
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  animation: fadeIn 1.5s ease-out .6s both;
}
.hero-mark{ font-size: 11px; color: var(--af-muted); line-height: 1.6; }
.hero-mark strong{
  display: block; font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--af-accent); margin-bottom: 4px;
}

/* FORM */
.form{
  flex: 1;
  background: #f6f7f9;
  padding: 44px 60px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.form__welcome{ margin-bottom: 18px; }
.form__welcome h2{
  font-family: 'Outfit', sans-serif;
  font-size: 30px; font-weight: 600;
  color: var(--af-black);
  margin: 0 0 6px; letter-spacing: -.5px;
}
.form__welcome p{ font-size: 13px; color: var(--af-muted); margin: 0; }

.form__inner{ max-width: 480px; width: 100%; margin: 0 auto; }

/* Badge do trial 14 dias — destaque logo antes do form */
.trial-badge{
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #46a648 0%, #3a8f3c 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(70,166,72,0.22);
  position: relative;
  overflow: hidden;
}
.trial-badge::after{
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.trial-badge__icone{
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative; z-index: 1;
}
.trial-badge__texto{
  display: flex; flex-direction: column; gap: 2px;
  position: relative; z-index: 1;
}
.trial-badge__titulo{
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 700; line-height: 1.1;
}
.trial-badge__sub{
  font-size: 12px; opacity: 0.9; font-weight: 500;
  letter-spacing: 0.2px;
}

/* Cada seção vira um card — colados verticalmente */
.form__section{
  background: var(--af-white);
  border: 1px solid #eaecef;
  border-radius: 12px;
  padding: 20px 22px 6px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.form__section:last-of-type{ margin-bottom: 16px; }
.form__section-title{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--af-black);
  margin: 0 0 18px;
  letter-spacing: 0;
  text-transform: none;
}
.form__section-title svg{ color: var(--af-green); flex-shrink: 0; }

.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field{ margin-bottom: 16px; }
.field label{
  display: block;
  font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: #6b7280;
  margin-bottom: 6px; font-weight: 700;
}
.field input{
  width: 100%; background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--af-black);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.field input:focus{
  border-color: var(--af-green);
  box-shadow: 0 0 0 3px rgba(70,166,72,0.12);
}
.field input::placeholder{ color: #b5b9c0; font-weight: 400; }
.field .hint{ font-size: 11px; color: var(--af-muted); margin-top: 6px; display: block; }

.senha-wrap{ position: relative; }
.senha-wrap input{ padding-right: 44px; }
.senha-toggle{
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: transparent; border: none; cursor: pointer;
  color: #8b8f97; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.senha-toggle:hover{ color: var(--af-green); background: rgba(70,166,72,0.08); }
.senha-toggle:focus{ outline: none; box-shadow: 0 0 0 2px rgba(70,166,72,0.25); }

.senha-regras{
  list-style: none;
  padding: 10px 14px; margin: 8px 0 0;
  background: #f4f6f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 11px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px;
}
.senha-regras li{
  padding: 2px 0 2px 18px; color: #999; position: relative;
  transition: color .2s;
}
.senha-regras li:before{ content: '○'; position: absolute; left: 2px; top: 2px; color: #ccc; }
.senha-regras li.ok{ color: #2f7f31; }
.senha-regras li.ok:before{ content: '✓'; color: var(--af-green); font-weight: 700; }

.erros{
  background: rgba(185,28,28,.05);
  border-left: 3px solid #b91c1c;
  padding: 14px 16px; margin-bottom: 22px;
}
.erros b{
  display: block; font-size: 12px; color: #b91c1c;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.erros ul{ margin: 0; padding-left: 18px; font-size: 13px; color: #7f1d1d; }
.erros li{ margin: 3px 0; }

.btn-criar{
  width: 100%; background: var(--af-green); color: var(--af-white);
  border: none; border-radius: 10px;
  padding: 16px 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; cursor: pointer;
  transition: all .3s;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(70,166,72,0.25);
}
.btn-criar:hover{
  background: #3a8f3c;
  box-shadow: 0 6px 20px rgba(70,166,72,0.35);
  transform: translateY(-1px);
}
.btn-criar:disabled{ opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.form-links{ text-align: center; margin-top: 22px; }
.form-links a{
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--af-muted);
  text-decoration: none; font-weight: 500;
}
.form-links a:hover{ color: var(--af-black); text-decoration: underline; }

.form__footer{
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: #bbb; text-align: center; margin-top: 32px;
}
.form__footer-link{
  color: var(--af-green); text-decoration: none; font-weight: 600;
}
.form__footer-link:hover{ text-decoration: underline; }

@media (max-width: 900px){
  body{ overflow: auto; }
  .split{ flex-direction: column; }
  .hero{ flex: none; padding: 32px 24px; min-height: auto; }
  .form{ padding: 32px 24px; }
  .field-row{ grid-template-columns: 1fr; gap: 0; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
