/* Login Nortion — "janela" com a cena da rodovia sobre o fundo desfocado da
   mesma imagem, menu no topo e cartão de vidro à direita (manual Nortion v1.0).
   Interação em login-nortion.js: brilho da borda segue o cursor, paralaxe da
   cena, cartão balança no erro e tela "Localizando sua frota" na saída.
   Página autônoma: não depende de style.css / theme-home.css. */

:root {
  --or: #ff6a00;
  --or-2: #ff8a33;
  --bg: #0b0b0b;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.68);
  --f-title: 'Archivo', system-ui, sans-serif;
  --f-text: 'Barlow', system-ui, sans-serif;
  --f-brand: 'Lexend Exa', 'Archivo', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --img: image-set(
    url('/images/login-nortion-bg.webp') type('image/webp'),
    url('/images/login-nortion-bg.jpg') type('image/jpeg')
  );
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden],
.hidden {
  display: none !important;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}

/* ---------- Fundo desfocado ---------- */
.na-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--img) 50% 60% / cover no-repeat;
  filter: blur(42px) saturate(1.3) brightness(0.55);
  transform: scale(1.2);
}
.na-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(11, 11, 11, 0.7));
}

/* ---------- Janela ---------- */
.na-frame {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(700px, calc(100dvh - 64px));
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  padding: 0 44px 44px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: na-rise 0.8s var(--ease) both;
}
@keyframes na-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}
.na-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
/* A imagem é maior que a janela para o carro ficar à esquerda do cartão. */
.na-scene-img {
  position: absolute;
  inset: -2%;
  background: var(--img) 96% 72% / 138% auto no-repeat;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease);
}
.na-scene-lights i {
  position: absolute;
  left: -40%;
  height: 2px;
  width: 34%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 51, 0.8), transparent);
  filter: blur(1px);
  opacity: 0;
  animation: na-streak 7s linear infinite;
}
.na-scene-lights i:nth-child(1) {
  top: 70%;
  animation-delay: 0.8s;
}
.na-scene-lights i:nth-child(2) {
  top: 80%;
  animation-delay: 3.4s;
  animation-duration: 6s;
}
.na-scene-lights i:nth-child(3) {
  top: 90%;
  animation-delay: 5.2s;
  animation-duration: 8s;
}
@keyframes na-streak {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(420%);
    opacity: 0;
  }
}
.na-scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.75) 0%, transparent 22%, transparent 75%, rgba(11, 11, 11, 0.7) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.35) 0%, transparent 35%, transparent 55%, rgba(11, 11, 11, 0.55) 100%),
    radial-gradient(50% 50% at 85% 100%, rgba(255, 106, 0, 0.18), transparent 70%);
}

/* ---------- Menu ---------- */
.na-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 84px;
}
.na-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.na-brand img {
  width: 34px;
  height: 34px;
  border-radius: 26%;
  box-shadow: 0 0 18px -4px rgba(255, 106, 0, 0.6);
}
.na-wordmark {
  font: 700 17px/1 var(--f-brand);
  letter-spacing: 0.02em;
}
.na-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.na-links a,
.na-current {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.na-links a:hover {
  color: var(--text);
}
.na-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.na-current {
  color: var(--text);
  font-weight: 600;
}
.na-current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--or);
}
.na-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.na-pill:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Legenda no canto da cena */
.na-caption {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.na-caption i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  animation: na-live 1.8s ease-out infinite;
}
@keyframes na-live {
  to {
    box-shadow: 0 0 0 10px rgba(255, 106, 0, 0);
  }
}

/* ---------- Cartão de vidro ---------- */
.na-panel {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  perspective: 1200px;
}
.na-card {
  --mx: 50%;
  --my: 0%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 28px;
  border-radius: 22px;
  background:
    radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 106, 0, 0.12), transparent 50%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease);
  animation: na-card-in 0.9s 0.15s var(--ease) both;
}
.na-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--or), rgba(255, 106, 0, 0.1) 45%, transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.na-card:hover::before,
.na-card:focus-within::before {
  opacity: 1;
}
@keyframes na-card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
.na-card.is-shake {
  animation: na-shake 0.42s var(--ease);
}
@keyframes na-shake {
  20%,
  60% {
    translate: -8px 0;
  }
  40%,
  80% {
    translate: 8px 0;
  }
}
.na-card-head {
  text-align: center;
  margin-bottom: 4px;
}
.na-card-head h1 {
  margin: 0;
  font: 700 28px/1.2 var(--f-title);
  letter-spacing: -0.01em;
}
.na-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Pessoal / Empresa */
.portal-choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.portal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.portal-options label {
  position: relative;
  cursor: pointer;
}
.portal-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.portal-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s;
}
.portal-options label:hover span {
  color: var(--text);
}
.portal-options svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-options input:checked + span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.6);
}
.portal-options input:checked + span svg {
  color: var(--or);
}
.portal-options input:focus-visible + span {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

/* Campos claros, como na referência */
.na-field {
  display: block;
}
.na-card input[type='email'],
.na-card input[type='password'],
.na-card input[type='text'],
.na-card .two-factor-code,
.google-link input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(245, 245, 245, 0.9);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition:
    box-shadow 0.25s,
    background 0.25s,
    border-color 0.25s;
}
.na-card input::placeholder {
  color: #6b6b6b;
  font-weight: 500;
}
.na-card input:focus {
  background: #fff;
  border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.25);
}
.na-card input:user-invalid {
  border-color: #ef4444;
}
.na-card input:-webkit-autofill {
  -webkit-text-fill-color: var(--bg);
  -webkit-box-shadow: 0 0 0 40px #f5f5f5 inset;
}
.register-input {
  position: relative;
  display: block;
}
.register-input input {
  padding-right: 50px !important;
}
.register-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  translate: 0 -50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #555;
  cursor: pointer;
}
.register-password-toggle:hover {
  color: var(--bg);
  background: rgba(0, 0, 0, 0.06);
}
.register-password-toggle:focus-visible {
  outline: 2px solid var(--or);
}
.register-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.register-password-toggle .eye-closed,
.register-password-toggle.is-visible .eye-open {
  display: none;
}
.register-password-toggle.is-visible .eye-closed {
  display: block;
}
.forgot-password-link {
  align-self: flex-end;
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-password-link:hover {
  color: var(--or-2);
}

/* Botão principal */
.register-submit {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--or);
  color: var(--bg);
  font: 700 16px/1 var(--f-title);
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(255, 106, 0, 0.9);
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    box-shadow 0.25s;
}
.register-submit b {
  transition: transform 0.3s var(--ease);
}
.register-submit::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.register-submit:hover {
  background: var(--or-2);
  transform: translateY(-1px);
}
.register-submit:hover::after {
  left: 120%;
}
.register-submit:hover b {
  transform: translateX(4px);
}
.register-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.register-submit:disabled {
  cursor: progress;
}
.register-submit.is-loading::after {
  animation: na-beam 1s linear infinite;
}
@keyframes na-beam {
  from {
    left: -60%;
  }
  to {
    left: 120%;
  }
}

/* Mensagens */
.form-error {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 38px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.45);
  color: #fee2e2;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.form-error::before {
  content: '!';
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.form-error.is-locked,
.form-error[data-code='ACCOUNT_LOCKED'] {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(120, 53, 15, 0.45);
  color: #fde68a;
}
.form-error.is-locked::before,
.form-error[data-code='ACCOUNT_LOCKED']::before {
  content: '';
  background: #b7791f
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.form-error.success {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(20, 83, 45, 0.45);
  color: #bbf7d0;
}
.form-error.success::before {
  content: '✓';
  background: #16a34a;
}

/* Duas etapas */
.two-factor-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.two-factor-step .two-factor-code {
  height: 58px;
  text-align: center;
  font: 700 26px/1 var(--f-title);
  letter-spacing: 0.4em;
}
.two-factor-back {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.two-factor-back:hover {
  color: var(--text);
}

/* Google */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.google-signin {
  display: flex;
  justify-content: center;
  min-height: 44px;
  color-scheme: normal;
}
.google-link {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
}
.google-link p {
  margin: 0;
}
.google-link-actions {
  display: flex;
  gap: 8px;
}
.google-link-actions button {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--or);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
}
.google-link-actions .secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.register-switch {
  margin: 2px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.register-switch a {
  margin-left: 2px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.register-switch a:hover {
  color: var(--or-2);
}
.turnstile-holder {
  display: flex;
  justify-content: center;
}

/* ---------- Saída: "Localizando sua frota" ---------- */
.na-exit {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 55%, rgba(255, 106, 0, 0.14), transparent 70%), var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.na-exit.on {
  opacity: 1;
}
.na-exit-core {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.na-exit-radar {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.na-exit-radar img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 26%;
  box-shadow: 0 0 40px -6px rgba(255, 106, 0, 0.8);
  animation: na-pop 0.5s var(--ease) both;
}
.na-exit-radar i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--or);
  border-radius: 50%;
  opacity: 0;
  animation: na-ring 1.4s ease-out infinite;
}
.na-exit-radar i:nth-child(2) {
  animation-delay: 0.45s;
}
.na-exit-radar i:nth-child(3) {
  animation-delay: 0.9s;
}
.na-exit p {
  margin: 0;
  color: var(--muted);
  font: 600 13px/1 var(--f-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@keyframes na-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}
@keyframes na-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .na-links {
    display: none;
  }
}
@media (max-height: 700px) and (min-width: 861px) {
  .na-frame {
    min-height: 0;
    height: calc(100dvh - 32px);
  }
  body {
    padding: 16px;
  }
  .na-card {
    gap: 11px;
    padding: 24px 28px 20px;
  }
}
/* Celular e tablet: sem moldura, a cena ocupa a tela e o cartão vem embaixo. */
@media (max-width: 860px) {
  body {
    padding: 0;
    display: block;
  }
  .na-backdrop {
    display: none;
  }
  .na-frame {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    padding: 0 16px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .na-scene {
    position: fixed;
  }
  .na-scene-img {
    background-size: cover;
    background-position: 40% 50%;
    inset: 0 0 auto;
    height: 52vh;
  }
  .na-scene-shade {
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.6) 0%, transparent 18%, rgba(11, 11, 11, 0.2) 32%, var(--bg) 52%);
  }
  .na-nav {
    height: 70px;
    gap: 16px;
  }
  .na-nav-actions .na-current {
    display: none;
  }
  .na-caption {
    grid-column: 1;
    grid-row: 2;
    margin: 18vh 0 20px;
    font-size: 13px;
  }
  .na-panel {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    width: min(440px, 100%);
    justify-self: center;
  }
  .na-card {
    padding: 26px 20px 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(11, 11, 11, 0.4);
  }
  .na-card-head h1 {
    font-size: 24px;
  }
}
@media (max-width: 380px) {
  .na-wordmark {
    font-size: 15px;
  }
  .na-pill {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .na-frame,
  .na-card,
  .na-scene-lights i,
  .na-caption i,
  .na-exit-radar i {
    animation: none !important;
  }
  .na-card {
    transform: none !important;
  }
}

/* ajustes finos */
.na-backdrop {
  filter: blur(42px) saturate(1.4) brightness(0.8);
}
@media (max-width: 860px) {
  .na-scene-img {
    height: 50vh;
    background-size: auto 130%;
    background-position: 42% 70%;
  }
  .na-caption {
    margin: 30vh 0 16px;
  }
}

/* =====================================================================
   Cartão v3: vidro escuro com brilho laranja no topo, campos em pílula com
   rótulo interno e botão redondo de seta dentro do campo da senha.
   O brilho do topo acompanha o cursor (--mx, vindo de login-nortion.js).
   ===================================================================== */
.na-card {
  gap: 16px;
  padding: 44px 34px 30px;
  border-radius: 40px;
  border: 1px solid rgba(255, 138, 51, 0.28);
  background:
    radial-gradient(70% 38% at var(--mx) 0%, rgba(255, 138, 51, 0.75), rgba(255, 106, 0, 0.25) 45%, transparent 80%),
    radial-gradient(90% 40% at 50% 105%, rgba(255, 106, 0, 0.22), transparent 70%),
    linear-gradient(180deg, #1c0f06 0%, #0d0b0a 42%, #0b0b0b 70%, #120a05 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 90px -30px rgba(255, 106, 0, 0.55),
    inset 0 1px 0 rgba(255, 190, 140, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.na-card::before {
  display: none;
}
.na-card-head {
  margin-bottom: 8px;
}
.na-card-head h1 {
  font: 800 32px/1.1 var(--f-title);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.na-card-head p {
  margin-top: 6px;
  color: rgba(245, 245, 245, 0.6);
  font-size: 15px;
}

/* Painel: pílula escura discreta */
.portal-options {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}
.portal-options span {
  height: 36px;
  border-radius: 999px;
  font-size: 13.5px;
}
.portal-options input:checked + span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 138, 51, 0.5);
}

/* Campos em pílula */
.na-fields {
  display: grid;
  gap: 16px;
}
.na-pill-field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 64px;
  padding: 10px 8px 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    0 6px 18px -8px rgba(0, 0, 0, 0.7);
  cursor: text;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.na-pill-field:focus-within {
  border-color: rgba(255, 138, 51, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(255, 106, 0, 0.14),
    0 0 30px -8px rgba(255, 106, 0, 0.6);
}
.na-pill-label {
  flex-basis: 100%;
  color: rgba(245, 245, 245, 0.55);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: text;
  transition: color 0.2s;
}
.na-pill-field:focus-within .na-pill-label {
  color: var(--or-2);
}
.na-card .na-pill-field input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
}
.na-card .na-pill-field input:focus {
  background: transparent;
  box-shadow: none;
  border: 0;
}
.na-card .na-pill-field input::placeholder {
  color: rgba(245, 245, 245, 0.25);
}
.na-card .na-pill-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px #1a1714 inset;
  transition: background-color 9999s;
}
.na-card input[type='password'] {
  letter-spacing: 0.12em;
}
.na-pill-password {
  padding-right: 6px;
}
.na-pill-password .na-pill-label {
  flex-basis: calc(100% - 100px);
}
/* Na pílula da senha, o rótulo e o campo ficam à esquerda; olho e seta à direita. */
.na-pill-password {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  column-gap: 4px;
}
.na-pill-password .na-pill-label {
  grid-column: 1;
  grid-row: 1;
}
.na-pill-password input {
  grid-column: 1;
  grid-row: 2;
}
.na-pill-password .register-password-toggle {
  position: static;
  translate: none;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: rgba(245, 245, 245, 0.55);
}
.na-pill-password .register-password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Botão redondo de seta */
.na-go {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb070 0%, var(--or-2) 30%, var(--or) 65%, #c94f00 100%);
  color: #0b0b0b;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 190, 140, 0.5),
    0 0 26px rgba(255, 106, 0, 0.75),
    0 8px 18px -6px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.na-go svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.na-go:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 190, 140, 0.7),
    0 0 40px rgba(255, 106, 0, 0.95),
    0 8px 18px -6px rgba(0, 0, 0, 0.8);
}
.na-go:hover svg {
  transform: translateX(2px);
}
.na-go:active {
  transform: scale(0.96);
}
.na-go:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Pronto para entrar: a seta pulsa de leve. */
.na-card.is-ready .na-go {
  animation: na-go-pulse 1.8s ease-in-out infinite;
}
@keyframes na-go-pulse {
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 190, 140, 0.6),
      0 0 46px rgba(255, 106, 0, 1),
      0 8px 18px -6px rgba(0, 0, 0, 0.8);
  }
}
.na-go:disabled {
  cursor: progress;
}
.na-go.is-loading svg {
  opacity: 0;
}
.na-go.is-loading::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 2.5px solid rgba(11, 11, 11, 0.3);
  border-top-color: #0b0b0b;
  border-radius: 50%;
  animation: na-spin 0.7s linear infinite;
}
@keyframes na-spin {
  to {
    transform: rotate(360deg);
  }
}

.forgot-password-link {
  margin: -4px 18px 0 0;
  color: rgba(245, 245, 245, 0.4);
  font-size: 14px;
}
.forgot-password-link:hover {
  color: var(--or-2);
}
.form-error {
  border-radius: 18px;
}

/* "ou" + Google em ícone */
.social-divider {
  justify-content: center;
  color: rgba(245, 245, 245, 0.35);
  font-size: 15px;
}
.social-divider::before,
.social-divider::after {
  flex: 0 1 110px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
}
.social-divider::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
}
.google-signin {
  min-height: 40px;
}
.register-switch {
  margin-top: 4px;
  color: rgba(245, 245, 245, 0.5);
}
.two-factor-step .two-factor-code {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.two-factor-step .register-submit {
  border-radius: 999px;
}

@media (max-height: 700px) and (min-width: 861px) {
  .na-card {
    padding: 30px 30px 22px;
    gap: 12px;
  }
  .na-pill-field {
    min-height: 58px;
  }
}
@media (max-width: 860px) {
  .na-card {
    padding: 36px 20px 24px;
    border-radius: 32px;
    background:
      radial-gradient(70% 38% at 50% 0%, rgba(255, 138, 51, 0.75), rgba(255, 106, 0, 0.25) 45%, transparent 80%),
      linear-gradient(180deg, #1c0f06 0%, #0d0b0a 42%, #0b0b0b 100%);
  }
  .na-card-head h1 {
    font-size: 28px;
  }
  .na-pill-field {
    padding-left: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .na-card.is-ready .na-go {
    animation: none;
  }
}
.na-card .na-pill-field:not(.na-pill-password) input {
  flex: 1 1 100%;
}
.na-pill-field {
  padding-right: 26px;
}
.na-pill-password {
  padding-right: 6px;
}
@media (max-width: 860px) {
  .na-panel {
    grid-row: 2;
    margin-top: 32vh;
  }
}

/* =====================================================================
   Criar conta (register.html): mesmo cartão, com progresso, plano e regras
   da senha. A janela cresce com o formulário, que é mais alto.
   ===================================================================== */
.na-current-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.na-current-link:hover {
  color: var(--text);
}
.na-register .na-frame {
  height: auto;
  min-height: min(700px, calc(100dvh - 64px));
}
.na-register .na-panel {
  padding: 8px 0;
}
.na-register .na-card {
  gap: 14px;
  padding-top: 38px;
}
.na-register .na-fields {
  gap: 12px;
}
.na-register .na-pill-field {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.na-pill-label small {
  color: rgba(245, 245, 245, 0.35);
  font-size: 11px;
}
.na-pill-field.is-complete {
  border-color: rgba(255, 138, 51, 0.45);
}
.na-pill-field.is-complete .na-pill-label::after {
  content: ' ✓';
  color: var(--or-2);
}
.na-pill-field.is-invalid {
  border-color: rgba(239, 68, 68, 0.7);
}
.na-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.register-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.register-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--or), var(--or-2));
  box-shadow: 0 0 12px var(--or);
  transition: width 0.4s var(--ease);
}
.register-progress-copy {
  margin: 0;
  color: rgba(245, 245, 245, 0.5);
  font-size: 12px;
  white-space: nowrap;
}
.register-progress-copy strong {
  color: var(--text);
}
.selected-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.selected-plan > span {
  display: none;
}
.selected-plan b {
  font-size: 14px;
  font-weight: 600;
}
.selected-plan small {
  grid-row: 2;
  color: rgba(245, 245, 245, 0.45);
  font-size: 12px;
}
.selected-plan a {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--or-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.selected-plan a:hover {
  text-decoration: underline;
}
.register-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: -2px 0 0;
}
.register-hint span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 245, 245, 0.45);
  font-size: 12px;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.register-hint span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.register-hint span.is-complete {
  color: var(--text);
  border-color: rgba(255, 138, 51, 0.45);
}
.register-hint span.is-complete::before {
  background: var(--or);
  box-shadow: 0 0 8px var(--or);
}
.na-register .register-submit {
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffb070 0%, var(--or-2) 25%, var(--or) 60%, #d55400 100%);
  box-shadow:
    0 0 0 1px rgba(255, 190, 140, 0.45),
    0 0 30px -4px rgba(255, 106, 0, 0.8);
}
.na-register .register-submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.na-register .register-submit:hover svg {
  transform: translateX(4px);
}
.register-form.is-ready .register-submit {
  animation: na-go-pulse 1.8s ease-in-out infinite;
}
@media (max-width: 860px) {
  .na-register .na-panel {
    margin-top: 26vh;
  }
}
.na-card input[type='password']::placeholder {
  letter-spacing: normal;
}
