/* ==========================================================================
   VionTech — Login
   Usa o MESMO design system do site (hero.css/index): cards e botões 2D
   com borda em --vt-ink e sombra sólida deslocada, tipografia Chakra Petch
   + Space Grotesk, paleta --vt-purple-500/600/700.
   Se hero.css/header já definem esses tokens em outra página, os valores
   abaixo em :root servem de fallback (mesmo padrão do hero.css).
   ========================================================================== */

:root{
  --vt-purple-500: #7C3AED;
  --vt-purple-600: #6D28D9;
  --vt-purple-700: #5B21B6;
  --vt-ink:        #14141A;
  --vt-gray-600:   #55555F;
  --vt-gray-300:   #E4E4EA;
  --vt-gray-100:   #F7F7FA;
  --vt-white:      #FFFFFF;
  --vt-danger:     #EF4444;
  --vt-success:    #22C55E;

  --vt-btn-radius: 8px;
  --vt-btn-border: 2px;
  --vt-card-radius: 16px;

  --vt-shadow-ink:         4px 4px 0 0 var(--vt-ink);
  --vt-shadow-ink-hover:   6px 6px 0 0 var(--vt-ink);
  --vt-shadow-ink-active:  1px 1px 0 0 var(--vt-ink);
  --vt-shadow-purple:        4px 4px 0 0 var(--vt-purple-700);
  --vt-shadow-purple-hover:  6px 6px 0 0 var(--vt-purple-700);
  --vt-shadow-purple-active: 1px 1px 0 0 var(--vt-purple-700);

  --vt-font-display: "Chakra Petch", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vt-font: "Space Grotesk", "Chakra Petch", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --vt-panel-line: #E7E5F5;
}

*, *::before, *::after{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: var(--vt-font);
  background: var(--vt-gray-100);
  color: var(--vt-ink);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

/* ================= LAYOUT GERAL ================= */

.vt-auth{
  display: grid;
  grid-template-columns: minmax(340px, 44%) 1fr;
  min-height: 100vh;
}

/* ================= PAINEL ESQUERDO (grid pontilhado, igual ao hero) ================= */

.vt-auth__panel{
  position: relative;
  background: var(--vt-gray-100);
  color: var(--vt-ink);
  padding: 48px 56px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.vt-auth__panel-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--vt-panel-line) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 40%, transparent 90%);
  opacity: .9;
  pointer-events: none;
}

.vt-auth__panel-glow{ display: none; }

.vt-auth__logo{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--vt-font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  width: fit-content;
  color: var(--vt-ink);
}

.vt-auth__logo-mark{
  width: 38px;
  height: 38px;
}

.vt-auth__eyebrow{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--vt-font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vt-ink);
  background: var(--vt-white);
  border: 1px solid var(--vt-gray-300);
  padding: 7px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 18px;
}

.vt-auth__eyebrow b{ color: var(--vt-purple-500); font-weight: 700; }

.vt-auth__panel h1{
  position: relative;
  z-index: 1;
  font-family: var(--vt-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  max-width: 420px;
}

.vt-auth__panel-lead{
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--vt-gray-600);
  max-width: 400px;
  margin: 0 0 36px;
}

.vt-auth__benefits{
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vt-auth__benefit{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vt-auth__benefit-icon{
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--vt-white);
  border: 1.5px solid var(--vt-gray-300);
  color: var(--vt-purple-500);
  font-size: 17px;
}

.vt-auth__benefit-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: var(--vt-gray-600);
}

.vt-auth__benefit-text strong{
  color: var(--vt-ink);
  font-family: var(--vt-font-display);
  font-size: 14.5px;
  font-weight: 600;
}

.vt-auth__panel-footer{
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1.5px dashed var(--vt-gray-300);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.vt-auth__stats{ display: flex; gap: 28px; }

.vt-auth__stat{ display: flex; flex-direction: column; gap: 2px; }

.vt-auth__stat strong{
  font-family: var(--vt-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--vt-purple-600);
}

.vt-auth__stat span{ font-size: 11.5px; color: var(--vt-gray-600); }

.vt-auth__quote{
  background: var(--vt-white);
  border: 1.5px solid var(--vt-gray-300);
  border-radius: 14px;
  padding: 18px 20px;
}

.vt-auth__quote p{
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--vt-ink);
  font-style: italic;
}

.vt-auth__quote footer{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #F59E0B;
}

.vt-auth__quote footer span{ margin-left: 8px; color: var(--vt-gray-600); font-style: normal; }
.vt-auth__quote footer b{ color: var(--vt-ink); }

/* ================= PAINEL DIREITO (form) ================= */

.vt-auth__form-side{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  background: var(--vt-white);
}

.vt-auth__form-wrap{
  width: 100%;
  max-width: 420px;
}

.vt-auth__form-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.vt-auth__form-top .vt-auth__eyebrow{ margin-bottom: 0; }
.vt-auth__form-top .vt-auth__eyebrow b{ color: var(--vt-purple-500); }

.vt-auth__switch{ font-size: 13px; color: var(--vt-gray-600); }
.vt-auth__switch a{ color: var(--vt-purple-600); font-weight: 700; }
.vt-auth__switch a:hover{ text-decoration: underline; }

.vt-auth__form-wrap h2{
  font-family: var(--vt-font);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.vt-auth__subtitle{
  font-size: 14px;
  color: var(--vt-gray-600);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ================= ALERTA ================= */

.vt-auth__alert{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FEF2F2;
  border: 1.5px solid var(--vt-ink);
  border-radius: 10px;
  padding: 14px 16px;
  color: #B91C1C;
  font-size: 13px;
  box-shadow: 3px 3px 0 0 var(--vt-ink);
}

.vt-auth__alert i{ font-size: 17px; margin-top: 1px; }
.vt-auth__alert div div{ margin-bottom: 2px; }
.vt-auth__alert div div:last-child{ margin-bottom: 0; }

.vt-auth__alert--ok{
  background: #ECFDF3;
  color: #166534;
  border-color: #166534;
  box-shadow: 3px 3px 0 0 #166534;
}

.vt-auth__alert--dev{
  background: #F5F3FF;
  color: var(--vt-purple-700);
  border: 1.5px dashed var(--vt-purple-500);
  box-shadow: 3px 3px 0 0 var(--vt-purple-700);
}

.vt-auth__alert--dev strong{ display: block; margin-bottom: 4px; font-size: 13px; }
.vt-auth__alert--dev code{
  font-size: 11px;
  background: rgba(255,255,255,.7);
  padding: 2px 6px;
  border-radius: 4px;
}

.vt-auth__dev-code{
  font-family: var(--vt-font-display);
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--vt-purple-600);
}

.vt-auth__email-pill{
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F5F3FF;
  border: 1px solid var(--vt-gray-300);
  font-weight: 600;
  font-size: 13px;
  color: var(--vt-purple-700);
  word-break: break-all;
}

/* ================= VERIFICAÇÃO DE E-MAIL ================= */

.vt-auth__form--verify{ gap: 18px; }

.vt-auth__verify-card{
  background: var(--vt-white);
  border: var(--vt-btn-border) solid var(--vt-ink);
  border-radius: var(--vt-card-radius);
  padding: 22px 20px 18px;
  box-shadow: var(--vt-shadow-ink);
}

.vt-auth__verify-head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--vt-gray-300);
}

.vt-auth__verify-icon{
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--vt-purple-500);
  border: var(--vt-btn-border) solid var(--vt-ink);
  color: var(--vt-white);
  font-size: 22px;
  box-shadow: 3px 3px 0 0 var(--vt-purple-700);
}

.vt-auth__verify-title{
  margin: 0 0 4px;
  font-family: var(--vt-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--vt-ink);
}

.vt-auth__verify-desc{
  margin: 0;
  font-size: 12px;
  color: var(--vt-gray-600);
}

.vt-auth__verify-label{
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--vt-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vt-gray-600);
}

.vt-auth__code-row{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.vt-auth__code-input{
  width: 52px;
  height: 60px;
  text-align: center;
  font-family: var(--vt-font-display);
  font-size: 24px;
  font-weight: 700;
  border: var(--vt-btn-border) solid var(--vt-ink);
  border-radius: 12px;
  background: var(--vt-white);
  color: var(--vt-ink);
  box-shadow: 2px 2px 0 0 var(--vt-gray-300);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  caret-color: var(--vt-purple-500);
}

.vt-auth__code-input:hover{
  background: #FAFAFC;
}

.vt-auth__code-input:focus{
  outline: none;
  border-color: var(--vt-purple-600);
  background: #F5F3FF;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--vt-purple-700);
}

.vt-auth__code-input.is-filled{
  background: #F5F3FF;
  border-color: var(--vt-purple-600);
  box-shadow: 2px 2px 0 0 var(--vt-purple-700);
}

.vt-auth__verify-meta{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 10px 0;
  border-top: 1px dashed var(--vt-gray-300);
  font-size: 12px;
  line-height: 1.5;
  color: var(--vt-gray-600);
  text-align: left;
}

.vt-auth__verify-meta i{
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 15px;
  color: var(--vt-purple-500);
}

.vt-auth__resend{
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--vt-gray-300);
  text-align: center;
}

.vt-auth__resend button,
.vt-auth__resend a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--vt-purple-600);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.vt-auth__resend button i,
.vt-auth__resend a i{ font-size: 16px; }

.vt-auth__resend button:hover,
.vt-auth__resend a:hover{
  background: #F5F3FF;
  text-decoration: none;
}

.vt-auth-page--verify .vt-auth__alert{
  margin-bottom: 18px;
}

.vt-auth__form--reset .vt-auth__verify-card{
  margin: 4px 0 18px;
}

@media (max-width: 560px){
  .vt-auth__code-row{ gap: 6px; }
  .vt-auth__code-input{
    width: 44px;
    height: 52px;
    font-size: 20px;
    border-radius: 10px;
  }
  .vt-auth__verify-card{ padding: 18px 14px 14px; }
}

@media (max-width: 380px){
  .vt-auth__code-input{
    width: 40px;
    height: 48px;
    font-size: 18px;
  }
}

/* ================= FORM ================= */

.vt-auth__form{ display: flex; flex-direction: column; gap: 22px; }

.vt-auth__section{ border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }

.vt-auth__field{ display: flex; flex-direction: column; gap: 7px; }

.vt-auth__field label{
  font-family: var(--vt-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-ink);
}

.req{ color: #EC4899; }

.vt-auth__input-wrap{
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--vt-gray-300);
  border-radius: 10px;
  background: var(--vt-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.vt-auth__input-wrap:focus-within{
  border-color: var(--vt-ink);
  box-shadow: 3px 3px 0 0 var(--vt-purple-500);
}

.vt-auth__input-wrap > i{ padding: 14px; color: var(--vt-gray-600); font-size: 16px; }

.vt-auth__input-wrap input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--vt-font);
  color: var(--vt-ink);
  min-width: 0;
}

.vt-auth__toggle-pass{
  border: none;
  background: transparent;
  color: var(--vt-gray-600);
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.vt-auth__toggle-pass:hover{ color: var(--vt-purple-600); }

.vt-auth__error{
  display: none;
  font-size: 12px;
  color: var(--vt-danger);
  font-weight: 500;
}

.vt-auth__field.is-invalid .vt-auth__input-wrap{ border-color: var(--vt-danger); }
.vt-auth__field.is-invalid .vt-auth__error{ display: block; }

/* ================= LINHA "LEMBRAR / ESQUECI" ================= */

.vt-auth__row-between{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.vt-auth__remember{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vt-gray-600);
  cursor: pointer;
}

.vt-auth__remember input{
  width: 16px;
  height: 16px;
  accent-color: var(--vt-purple-500);
}

.vt-auth__forgot{ color: var(--vt-purple-600); font-weight: 700; text-decoration: none; }
.vt-auth__forgot:hover{ text-decoration: underline; }

/* ================= BOTÕES (mesmo sistema 2D do header/hero) ================= */

.vt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vt-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 22px;
  border-radius: var(--vt-btn-radius);
  cursor: pointer;
  border: var(--vt-btn-border) solid var(--vt-ink);
  transform: translate(0, 0);
  transition: transform 100ms cubic-bezier(.2,0,.2,1), box-shadow 100ms cubic-bezier(.2,0,.2,1), background 100ms ease;
}

.vt-btn--solid{
  background: var(--vt-purple-500);
  border-color: var(--vt-purple-700);
  color: var(--vt-white);
  box-shadow: var(--vt-shadow-purple);
}

.vt-btn--solid:hover{
  transform: translate(-1px, -1px);
  box-shadow: var(--vt-shadow-purple-hover);
  background: var(--vt-purple-600);
}

.vt-btn--solid:active{
  transform: translate(3px, 3px);
  box-shadow: var(--vt-shadow-purple-active);
}

.vt-auth__submit{ width: 100%; }
.vt-btn__icon{ width: 16px; height: 16px; margin-left: 6px; transition: transform .15s ease; }
.vt-btn--solid:hover .vt-btn__icon{ transform: translateX(3px); }

.vt-auth__divider{
  position: relative;
  text-align: center;
  font-size: 12px;
  color: var(--vt-gray-600);
}

.vt-auth__divider::before,
.vt-auth__divider::after{
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--vt-gray-300);
}
.vt-auth__divider::before{ left: 0; }
.vt-auth__divider::after{ right: 0; }

.vt-auth__social{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1.5px solid var(--vt-gray-300);
  border-radius: var(--vt-btn-radius);
  background: var(--vt-white);
  padding: 12px 20px;
  font-family: var(--vt-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--vt-ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.vt-auth__social:hover{ border-color: var(--vt-ink); background: var(--vt-gray-100); transform: translate(-1px,-1px); }
.vt-auth__social i{ font-size: 17px; color: #EA4335; }

/* ================= TELA DE SUCESSO ================= */

.vt-auth__success{
  text-align: center;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vt-auth__success-icon{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--vt-purple-500);
  border: 2px solid var(--vt-ink);
  color: var(--vt-white);
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 0 var(--vt-purple-700);
}

.vt-auth__success h2{ font-family: var(--vt-font-display); font-size: 22px; margin: 0 0 12px; }

.vt-auth__success p{
  font-size: 14px;
  color: var(--vt-gray-600);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 0 28px;
}

.vt-auth__success .vt-auth__submit{ width: auto; padding: 13px 26px; }

/* ================= RESPONSIVO ================= */

@media (max-width: 960px){
  .vt-auth{ grid-template-columns: 1fr; }
  .vt-auth__panel{ padding: 36px 28px; }
  .vt-auth__panel h1{ font-size: 26px; }
  .vt-auth__benefits{ display: none; }
  .vt-auth__panel-footer{ margin-top: 24px; padding-top: 20px; }
  .vt-auth__form-side{ padding: 36px 24px 56px; }
}

@media (max-width: 560px){
  .vt-auth__panel-footer .vt-auth__quote{ display: none; }
}

/* ================= ACESSIBILIDADE ================= */

:focus-visible{ outline: 2px solid var(--vt-purple-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

