*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --bg:#ffffff;
  --card:#ffffff;
  --line:#dfe3ea;
  --line-2:#e8ebf0;
  --text:#0f172a;
  --muted:#7b8794;
  --green:#22c55e;
  --green-dark:#16a34a;
  --blue-deep:#081c66;
  --blue-mid:#132a86;
  --danger-bg:#fff1f2;
  --danger-border:#fecdd3;
  --danger-text:#c2410c;
  --success-bg:#ecfdf5;
  --success-border:#a7f3d0;
  --success-text:#047857;
  --shadow:0 16px 40px rgba(15,23,42,.08);
  --shadow-soft:0 10px 24px rgba(15,23,42,.06);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:12px;
  --transition:.22s ease;
}

html,
body{
  width:100%;
  max-width:100%;
  min-height:100%;
  background:#ffffff;
  overflow-x:hidden;
}

body{
  font-family:'Poppins',sans-serif;
  background:#ffffff;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

img{
  max-width:100%;
  display:block;
}

iframe,
table,
pre,
code{
  max-width:100%;
}

.is-hidden{
  display:none !important;
}

.auth{
  width:100%;
  max-width:100%;
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  background:#ffffff;
  overflow-x:hidden;
}

/* =========================
   LADO ESQUERDO
========================= */
.auth__promo{
  position:relative;
  overflow:hidden;
  min-height:100dvh;
  min-width:0;
  background:
    radial-gradient(circle at top right, rgba(88,110,255,.28) 0%, rgba(88,110,255,0) 28%),
    radial-gradient(circle at bottom left, rgba(34,197,94,.12) 0%, rgba(34,197,94,0) 28%),
    linear-gradient(135deg, #061a63 0%, #102785 52%, #0a215f 100%);
}

.auth__promo::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("/img/bg-login-lines.png") center/cover no-repeat;
  opacity:.18;
  pointer-events:none;
}

.promo__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(7,18,78,.12), rgba(7,18,78,.02));
  pointer-events:none;
  z-index:1;
}

.promo__content{
  position:relative;
  z-index:2;
  min-height:100dvh;
  min-width:0;
  max-width:100%;
  padding:26px 62px 50px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
}

.promo__stack{
  max-width:500px;
  min-width:0;
}

.promo__title{
  font-size:50px;
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.03em;
  margin-bottom:24px;
  max-width:620px;
  word-break:break-word;
}

.t-white,
.t-green{
  display:inline;
}

.t-white{
  color:#ffffff;
}

.t-green{
  color:#22d07f;
}

.promo__text{
  max-width:540px;
  color:rgba(255,255,255,.88);
  font-size:16px;
  line-height:1.65;
  font-weight:500;
  margin-bottom:26px;
}

.promo__bullets{
  list-style:disc;
  padding-left:24px;
  margin-bottom:24px;
}

.promo__bullets li{
  color:#ffffff;
  font-size:15px;
  line-height:1.65;
  margin-bottom:9px;
  font-weight:600;
}

.promo__bullets li::marker{
  color:#ffffff;
}

.promo__badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
  min-width:0;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  color:#ffffff;
  font-size:13px;
  font-weight:700;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(8px);
}

.promo__foot{
  display:block;
  color:rgba(255,255,255,.74);
  font-size:14px;
  font-weight:500;
}

.promo__imagewrap{
  width:100%;
  max-width:559px;
  min-width:0;
  margin-top:29px;
  transform:translateY(-5px);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 26px 60px rgba(1,8,36,.30);
  backdrop-filter:blur(4px);
}

.promo__image{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* =========================
   LADO DIREITO
========================= */
.auth__form{
  min-height:100dvh;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:24px 28px 16px;
  background:#ffffff;
  overflow-x:hidden;
}

.login-logo{
  width:100%;
  height:auto;
  object-fit:contain;
}

.login-logo--big{
  max-width:240px;
  margin:0 auto 10px;
}

.card{
  width:min(100%, 610px);
  max-width:100%;
  min-width:0;
  background:var(--card);
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:var(--shadow);
}

.card--flat{
  padding:22px 30px 16px;
}

.card__title{
  color:#071133;
  font-size:34px;
  line-height:1.06;
  font-weight:800;
  margin-bottom:4px;
  letter-spacing:-.02em;
}

.card__subtitle{
  color:#7b8794;
  font-size:15px;
  line-height:1.42;
  margin-bottom:12px;
  font-weight:500;
}

/* =========================
   ALERTAS
========================= */
.alert{
  width:100%;
  border-radius:14px;
  padding:10px 14px;
  margin-bottom:12px;
  background:var(--danger-bg);
  color:#c2410c;
  border:1px solid var(--danger-border);
  font-size:14px;
  line-height:1.35;
  font-weight:500;
  word-break:break-word;
}

.alert--success{
  background:var(--success-bg);
  color:var(--success-text);
  border:1px solid var(--success-border);
}

/* =========================
   TABS
========================= */
.tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  background:#eeeeef;
  border-radius:16px;
  padding:6px;
  margin-bottom:12px;
  width:100%;
  min-width:0;
}

.tab{
  appearance:none;
  border:none;
  outline:none;
  background:#ffffff;
  color:#111827;
  min-height:42px;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  transition:all var(--transition);
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  min-width:0;
}

.tab:not(.is-active){
  background:transparent;
  box-shadow:none;
  color:#0f172a;
}

.tab.is-active{
  background:#ffffff;
  box-shadow:0 4px 14px rgba(15,23,42,.07);
}

/* =========================
   FORMULÁRIOS
========================= */
.form{
  width:100%;
  min-width:0;
}

.field{
  display:block;
  width:100%;
  margin-bottom:10px;
  min-width:0;
}

.field > span{
  display:block;
  color:#111827;
  font-size:14px;
  font-weight:700;
  margin-bottom:7px;
}

.field input,
.field textarea,
.field select{
  width:100%;
  max-width:100%;
  height:44px;
  border:1px solid #d8dee8;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  font-size:14px;
  font-weight:500;
  padding:0 16px;
  outline:none;
  transition:border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field textarea{
  min-height:100px;
  height:auto;
  resize:vertical;
  padding:14px 16px;
}

.field input::placeholder,
.field textarea::placeholder{
  color:#98a2b3;
  font-weight:500;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color:#bfc8d6;
  box-shadow:0 0 0 4px rgba(99,102,241,.06);
}

.fieldhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}

.fieldhead__label{
  color:#111827;
  font-size:14px;
  font-weight:700;
}

.link{
  color:#3763ff;
  font-size:14px;
  font-weight:700;
  transition:opacity var(--transition);
  word-break:break-word;
}

.link:hover{
  opacity:.88;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
}

.input-wrap input{
  width:100%;
  max-width:100%;
  margin:0;
}

.input-wrap--icon input,
.input-wrap .icon + input{
  padding-left:44px;
}

.input-wrap--password input{
  padding-right:52px;
}

.icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:15px;
  line-height:1;
  opacity:.72;
  pointer-events:none;
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:50px;
}

.toggle-password{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:none;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  padding:0;
  color:#64748b;
  font-size:18px;
  line-height:1;
  transition:background-color .18s ease, transform .18s ease, color .18s ease;
}

.toggle-password:hover{
  background:rgba(15,23,42,.06);
}

.toggle-password:active{
  transform:translateY(-50%) scale(.97);
}

.toggle-password.is-visible,
.toggle-password.is-open{
  color:#16a34a;
}

.check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#667085;
  font-size:13px;
  line-height:1.4;
  font-weight:500;
}

.check input{
  width:16px;
  height:16px;
  margin-top:2px;
  accent-color:var(--green-dark);
  flex:0 0 auto;
}

.check--spaced{
  margin:8px 0 14px;
}

.legal{
  color:#748092;
  font-size:13px;
  line-height:1.45;
  margin:6px 0 10px;
  font-weight:500;
}

.legal .link{
  font-size:13px;
}

/* =========================
   GRID
========================= */
.grid2{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  min-width:0;
}

.grid3{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.2fr);
  gap:14px;
  min-width:0;
}

/* =========================
   BOTÕES
========================= */
.btn{
  appearance:none;
  border:none;
  outline:none;
  width:100%;
  min-height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  font-size:15px;
  font-weight:800;
  transition:transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover{
  transform:translateY(-1px);
}

.btn:active{
  transform:translateY(0);
}

.btn__arrow{
  font-size:18px;
  line-height:1;
}

.btn--primary{
  background:#081133;
  color:#ffffff;
  box-shadow:0 10px 20px rgba(8,17,51,.18);
}

.btn--primary:hover{
  background:#0b1845;
}

.btn--success{
  background:linear-gradient(180deg, #22c55e 0%, #1db954 100%);
  color:#ffffff;
  box-shadow:0 14px 28px rgba(34,197,94,.22);
}

.btn--success:hover{
  background:linear-gradient(180deg, #20bf5a 0%, #18ab4b 100%);
}

.btn--ghost{
  background:#f8fafc;
  color:#0f172a;
  border:1px solid #e2e8f0;
  width:auto;
  min-width:150px;
}

/* =========================
   SIGNUP 2 ETAPAS
========================= */
.signup-progress{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
  width:100%;
}

.signup-progress-step{
  flex:1;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
  min-width:0;
}

.signup-progress-step::after{
  content:"";
  position:absolute;
  top:17px;
  left:calc(50% + 18px);
  width:calc(100% - 36px);
  height:2px;
  background:#e2e8f0;
  z-index:1;
}

.signup-progress-step:last-child::after{
  display:none;
}

.signup-progress-step .step-badge{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#e2e8f0;
  color:#475569;
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2;
  transition:.2s ease;
}

.signup-progress-step .step-label{
  font-size:11px;
  line-height:1.2;
  color:#64748b;
  font-weight:600;
}

.signup-progress-step.is-active .step-badge,
.signup-progress-step.is-done .step-badge{
  background:#16a34a;
  color:#fff;
}

.signup-progress-step.is-active .step-label,
.signup-progress-step.is-done .step-label{
  color:#16a34a;
}

.signup-progress-step.is-done::after{
  background:#16a34a;
}

.signup-step{
  width:100%;
}

.signup-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:8px;
  width:100%;
}

/* =========================
   LINKS ÚTEIS / RODAPÉ
========================= */
.useful{
  margin-top:14px;
}

.useful__line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#b5bdc9;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:700;
  margin-top:8px;
}

.useful__line::before,
.useful__line::after{
  content:"";
  flex:1;
  height:1px;
  background:#e5e7eb;
}

.useful__links{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.useful__links .link{
  font-size:13px;
}

.copyright{
  margin-top:12px;
  text-align:center;
  color:#a0a8b5;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1366px){
  .promo__content{
    padding:40px 34px 34px;
  }

  .promo__title{
    font-size:44px;
    line-height:1.06;
  }

  .promo__text{
    font-size:15px;
  }

  .promo__imagewrap{
    max-width:520px;
  }

  .card{
    max-width:560px;
  }

  .card--flat{
    padding:20px 24px 16px;
  }
}

@media (max-width: 1100px){
  .auth{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .auth__promo{
    min-height:auto;
  }

  .promo__content{
    min-height:auto;
    padding:28px 22px 24px;
    gap:22px;
  }

  .promo__stack{
    max-width:100%;
  }

  .promo__title{
    font-size:38px;
    max-width:100%;
  }

  .promo__text{
    max-width:100%;
    font-size:15px;
    line-height:1.55;
  }

  .promo__bullets{
    margin-bottom:18px;
  }

  .promo__bullets li{
    font-size:14px;
    line-height:1.5;
  }

  .promo__imagewrap{
    max-width:460px;
    margin-top:0;
    transform:none;
  }

  .auth__form{
    min-height:auto;
    padding:24px 18px 24px;
  }

  .card{
    width:min(100%, 620px);
  }
}

@media (max-width: 900px){
  .auth__promo{
    display:none;
  }

  .auth{
    grid-template-columns:1fr;
    min-height:100dvh;
  }

  .auth__form{
    min-height:100dvh;
    justify-content:center;
    padding:20px 14px;
  }

  .login-logo--big{
    max-width:210px;
    margin:0 auto 12px;
  }

  .card{
    width:100%;
    max-width:100%;
    border-radius:20px;
  }

  .card--flat{
    padding:18px 16px 16px;
  }

  .card__title{
    font-size:28px;
    line-height:1.08;
  }

  .card__subtitle{
    font-size:14px;
    line-height:1.45;
  }

  .grid2,
  .grid3{
    grid-template-columns:1fr;
    gap:12px;
  }

  .fieldhead{
    flex-wrap:wrap;
    gap:8px;
  }

  .tabs{
    gap:8px;
    padding:5px;
  }

  .tab{
    font-size:14px;
    min-height:40px;
  }

  .signup-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .signup-actions .btn,
  .btn--ghost{
    width:100%;
    min-width:100%;
  }
}

@media (max-width: 640px){
  html,
  body{
    overflow-x:hidden;
  }

  .auth{
    min-height:100svh;
  }

  .auth__form{
    min-height:100svh;
    padding:16px 10px 18px;
  }

  .login-logo--big{
    max-width:190px;
  }

  .card{
    border-radius:18px;
  }

  .card--flat{
    padding:16px 14px;
  }

  .card__title{
    font-size:24px;
  }

  .card__subtitle{
    font-size:13px;
  }

  .field > span{
    font-size:13px;
    margin-bottom:6px;
  }

  .field input,
  .field textarea,
  .field select{
    height:42px;
    font-size:14px;
    padding-left:14px;
    padding-right:14px;
  }

  .field textarea{
    min-height:96px;
    padding-top:12px;
    padding-bottom:12px;
  }

  .input-wrap--icon input,
  .input-wrap .icon + input{
    padding-left:40px;
  }

  .input-wrap--password input,
  .password-wrap input{
    padding-right:44px;
  }

  .icon{
    left:12px;
  }

  .toggle-password{
    width:30px;
    height:30px;
    right:6px;
    font-size:16px;
  }

  .btn{
    min-height:44px;
    font-size:14px;
    border-radius:12px;
  }

  .alert{
    font-size:13px;
    padding:10px 12px;
  }

  .useful__line{
    font-size:10px;
    letter-spacing:.14em;
    gap:8px;
  }

  .useful__links{
    gap:10px;
  }

  .copyright{
    font-size:12px;
  }
}

@media (max-width: 420px){
  .auth__form{
    padding:14px 8px 16px;
  }

  .card--flat{
    padding:14px 12px;
  }

  .card__title{
    font-size:22px;
  }

  .tabs{
    grid-template-columns:1fr;
  }

  .tab{
    width:100%;
  }

  .signup-progress{
    gap:6px;
  }

  .signup-progress-step .step-badge{
    width:30px;
    height:30px;
    font-size:12px;
  }

  .signup-progress-step .step-label{
    font-size:10px;
  }

  .check{
    font-size:12px;
  }

  .legal{
    font-size:12px;
  }
}