/* ============================================================
   AppTitude Fit — Acesso (login OTP)
   Mesmos tokens da landing: paper/mist/ink/steel/pulse/mint
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --mist: #F6F7F9;
  --ink: #0F172A;
  --steel: #64748B;
  --line: #E5E8EE;
  --pulse: #F97316;
  --pulse-dark: #EA580C;
  --pulse-soft: #FFF3EA;
  --mint: #10B981;
  --mint-soft: #E9F9F2;
  --error: #DC2626;
  --error-soft: #FEF2F2;
  --radius: 16px;
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 20px 44px -12px rgba(15, 23, 42, .22);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.acesso {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Painel de marca (esquerda) ---------- */
.acesso--brand {
  background: var(--ink);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.acesso--brand::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.25), transparent 65%);
}
.acesso--brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: #fff;
}
.acesso--brand-logo .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--pulse);
}
.acesso--brand-body { position: relative; z-index: 1; max-width: 26em; }
.acesso--brand-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.acesso--brand-body h1 .hl { color: var(--pulse); }
.acesso--brand-body p { color: #A6B0C3; font-size: 1rem; }
.acesso--brand-steps {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.acesso--brand-step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: .92rem;
  color: #C7CEDB;
}
.acesso--brand-step .n {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(249,115,22,.16);
  color: var(--pulse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.acesso--brand-foot { font-size: .8rem; color: #64748B; position: relative; z-index: 1; }

/* ---------- Painel do formulário (direita) ---------- */
.acesso--panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.acesso--card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 36px 32px;
}
.acesso--card-head { margin-bottom: 26px; }
.acesso--card-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.acesso--card-head p { font-size: .92rem; color: var(--steel); }
.acesso--card-head p strong { color: var(--ink); font-weight: 600; }

.acesso--label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.acesso--input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.acesso--input:focus {
  outline: none;
  border-color: var(--pulse);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
.acesso--input::placeholder { color: #9AA3B2; }
.acesso--field { margin-bottom: 18px; }

/* Caixas do código */
.acesso--code {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.acesso--code input {
  width: 100%;
  aspect-ratio: 0.85;
  max-width: 52px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .1s;
  caret-color: var(--pulse);
}
.acesso--code input:focus {
  outline: none;
  border-color: var(--pulse);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
.acesso--code input.filled { border-color: var(--ink); }

/* Botões */
.acesso--btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, transform .15s;
  margin-top: 8px;
}
.acesso--btn-primary { background: var(--pulse); color: #fff; box-shadow: 0 6px 16px -6px rgba(249,115,22,.55); }
.acesso--btn-primary:hover:not(:disabled) { background: var(--pulse-dark); transform: translateY(-1px); }
.acesso--btn:disabled { opacity: .6; cursor: not-allowed; }
.acesso--btn:focus-visible { outline: 3px solid rgba(249,115,22,.45); outline-offset: 2px; }

.acesso--link-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--pulse-dark);
  cursor: pointer;
  padding: 4px;
}
.acesso--link-btn:disabled { color: var(--steel); cursor: not-allowed; }

/* Alertas */
.acesso--alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.acesso--alert svg { flex-shrink: 0; margin-top: 1px; }
.acesso--alert-error { background: var(--error-soft); color: var(--error); }
.acesso--alert-success { background: var(--mint-soft); color: #047857; }
.hidden { display: none !important; }

/* Etapas */
.acesso--step { animation: acessoIn .25s cubic-bezier(0,0,.2,1); }
@keyframes acessoIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.acesso--meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--steel);
}

.acesso--foot {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--steel);
}
.acesso--foot a { color: var(--pulse-dark); font-weight: 600; text-decoration: none; }

.acesso--spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acessoSpin .8s linear infinite;
}
@keyframes acessoSpin { to { transform: rotate(360deg); } }

/* Timer de reenvio */
.acesso--timer { font-variant-numeric: tabular-nums; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  body.acesso { grid-template-columns: 1fr; }
  .acesso--brand { display: none; }
  .acesso--panel { min-height: 100vh; align-items: flex-start; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .acesso--step { animation: none; }
  .acesso--spinner { animation-duration: 1.6s; }
}
