/* ═══════════════════════════════════════════
   ENW Sistema Administrativo – login.css
   Tela de Login
   ═══════════════════════════════════════════ */

/* ── Reset de body/html para cobertura total ── */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* As etapas de recuperação ainda exibem seus avisos normalmente. A tela
   principal de login não renderiza esse bloco: ela usa apenas o balanço dos
   campos para indicar uma tentativa inválida. */
.login-card .flash-container {
  margin: 0 0 20px;
}
.login-card .flash {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #26364a;
  background: #ffffff;
  border: 1px solid #d9e1eb;
  box-shadow: 0 5px 14px rgba(22, 36, 58, .08);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}
.login-card .flash--error,
.login-card .flash--warning,
.login-card .flash--success,
.login-card .flash--info {
  color: #9a3412;
  background: linear-gradient(135deg, #fffaf5, #fff1e6);
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .14);
}
.login-card .flash-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, .74);
  font-size: .78rem;
  font-weight: 900;
}

/* ── Background ── */
.login-bg {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

/* ── Grid de fundo fixo que cobre TODA a tela ── */
.login-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(249,115,22,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Gradiente suave por cima do grid */
.login-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255,145,29,.12) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(255,145,29,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(255,145,29,.05) 0%, transparent 60%);
}

/* Fibra óptica do painel, reproduzida no login desktop. O SVG usa os mesmos
   raios, camadas brancas/laranjas e partículas contínuas do fundo interno. */
.login-fiber-lights { position:fixed; z-index:2; inset:0; overflow:hidden; pointer-events:none; filter:blur(2px); }
.login-fiber-lights .fiber-light { position:absolute; display:block; box-sizing:border-box; width:920px !important; height:920px !important; border:0; border-radius:50%; transform:none !important; pointer-events:none; }
.login-fiber-lights .fiber-light--lower { left:-420px; bottom:-590px; }
.login-fiber-lights .fiber-light--upper { top:-630px; right:-600px; }
.login-fiber-lights .fiber-particles { position:absolute; left:-40px; top:-40px; width:980px; height:980px; overflow:visible; pointer-events:none; }
.login-fiber-lights .fiber-cable { fill:none; vector-effect:non-scaling-stroke; }
.login-fiber-lights .fiber-cable--core { stroke:rgba(249,115,22,.7); stroke-width:10px; }
.login-fiber-lights .fiber-cable--white-one { stroke:rgba(255,248,241,.98); stroke-width:6px; }
.login-fiber-lights .fiber-cable--orange { stroke:rgba(251,146,60,.62); stroke-width:6px; }
.login-fiber-lights .fiber-cable--white-two { stroke:rgba(255,255,255,.96); stroke-width:6px; }
.login-fiber-lights .fiber-cable--orange-outer { stroke:rgba(249,115,22,.42); stroke-width:7px; filter:drop-shadow(0 0 5px rgba(249,115,22,.36)); }
.login-fiber-lights .fiber-cable--halo { stroke:rgba(249,115,22,.12); stroke-width:12px; }
.login-fiber-lights .fiber-particle { fill:none; transform-origin:460px 460px; vector-effect:non-scaling-stroke; }
.login-fiber-lights .fiber-particle--one { stroke:rgba(249,115,22,.96); stroke-width:1.4px; stroke-linecap:round; stroke-dasharray:1px 33px 1.2px 69px 1px 25px 1.3px 81px; animation:login-fiber-stream 8s linear infinite; }
.login-fiber-lights .fiber-particle--three { stroke:rgba(249,115,22,.8); stroke-width:1px; stroke-linecap:round; stroke-dasharray:1px 58px 1.1px 103px 1px 37px 1.2px 89px; animation:login-fiber-stream 10.8s linear infinite reverse; }
@keyframes login-fiber-stream { from { stroke-dashoffset:0; } to { stroke-dashoffset:-620px; } }

/* ── Feixes luminosos ENW — canto inferior esquerdo ── */
.login-beam-left {
  position: fixed;
  width: 720px;
  height: 720px;
  left: -310px;
  bottom: -420px;
  border-radius: 50%;
  border: 10px solid rgba(255,145,29,.75);
  box-shadow:
    0 0 0  5px rgba(255,248,241,.98),
    0 0 0 11px rgba(255,145,29,.55),
    0 0 0 17px rgba(255,255,255,.97),
    0 0 0 23px rgba(255,145,29,.40),
    0 0 0 30px rgba(255,176,93,.22),
    0 0 0 40px rgba(255,145,29,.08),
    0 0 60px 30px rgba(255,145,29,.15);
  filter: drop-shadow(0 0 12px rgba(255,145,29,.55)) drop-shadow(0 0 30px rgba(255,145,29,.25));
  pointer-events: none;
  z-index: 2;
  animation: beamPulse 7s ease-in-out infinite alternate;
}

/* Segundo feixe interno (mais fino, desloca) */
.login-beam-left::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 4px solid rgba(255,180,80,.6);
  filter: blur(1px);
  animation: beamPulse 7s ease-in-out infinite alternate-reverse;
}

/* ── Feixes luminosos ENW — canto superior direito ── */
.login-beam-right {
  position: fixed;
  width: 720px;
  height: 720px;
  right: -400px;
  top: -420px;
  border-radius: 50%;
  border: 10px solid rgba(255,145,29,.70);
  box-shadow:
    0 0 0  5px rgba(255,248,241,.98),
    0 0 0 11px rgba(255,145,29,.52),
    0 0 0 17px rgba(255,255,255,.97),
    0 0 0 23px rgba(255,145,29,.37),
    0 0 0 30px rgba(255,176,93,.18),
    0 0 0 40px rgba(255,145,29,.07),
    0 0 60px 30px rgba(255,145,29,.12);
  filter: drop-shadow(0 0 12px rgba(255,145,29,.5)) drop-shadow(0 0 30px rgba(255,145,29,.22));
  pointer-events: none;
  z-index: 2;
  animation: beamPulse 7s ease-in-out infinite alternate-reverse;
  animation-delay: -3.5s;
}

.login-beam-right::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 4px solid rgba(255,180,80,.55);
  filter: blur(1px);
  animation: beamPulse 9s ease-in-out infinite alternate;
}

/* Terceiro feixe decorativo — canto inferior direito menor */
.login-beam-accent {
  position: fixed;
  width: 350px;
  height: 350px;
  right: -120px;
  bottom: -180px;
  border-radius: 50%;
  border: 6px solid rgba(255,145,29,.40);
  box-shadow:
    0 0 0 4px rgba(255,248,241,.6),
    0 0 0 8px rgba(255,145,29,.25),
    0 0 0 13px rgba(255,176,93,.10);
  pointer-events: none;
  z-index: 2;
  animation: beamPulse 9s ease-in-out infinite alternate;
  animation-delay: -1.5s;
}

@keyframes beamPulse {
  0%   { opacity: .70; transform: scale(.975) rotate(-1deg); }
  50%  { opacity: 1;   transform: scale(1.005) rotate(0deg); }
  100% { opacity: .78; transform: scale(1.018) rotate(1deg); }
}

/* ── Orbs de luz suave ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .40;
  z-index: 1;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.bg-orb--1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255,145,29,.32) 0%, transparent 70%);
  top: -220px;
  left: -160px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255,145,29,.18) 0%, transparent 70%);
  bottom: -170px;
  right: -120px;
  animation-delay: 4s;
}

.bg-orb--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,145,29,.14) 0%, transparent 70%);
  top: 45%;
  left: 15%;
  animation-delay: 2s;
  opacity: .28;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(25px, 18px) scale(1.08); }
}

/* ── Wrapper central ── */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 24px 16px;
}

/* ── Card ── */
.login-card {
  /* Transparência sutil para deixar a identidade visual do fundo aparecer
     sem comprometer o contraste dos campos. */
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,145,29,.15);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255,255,255,.6) inset,
    0 8px 40px rgba(255,145,29,.08);
  position: relative;
  overflow: hidden;
  animation: cardReveal .5s cubic-bezier(.22,.61,.36,1) both;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 30% at 50% 0%, rgba(255,145,29,.07) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Linha de acento superior ── */
.card-accent-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--orange) 40%, var(--orange-light) 60%, transparent);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 0 12px rgba(255,145,29,.5);
}

/* ── Logo ── */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.login-logo-image {
  display: block;
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(255,145,29,.16));
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .5px;
  font-style: italic;
}

/* ── Título ── */
.login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.login-subtitle {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Formulário ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Grupo de campo ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Indicação discreta de tentativa inválida, sem abrir um alerta visual. */
.login-field-shake {
  animation: login-field-shake .42s ease;
}

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Input wrapper ── */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  pointer-events: none;
  z-index: 2;
}

.form-input {
  width: 100%;
  height: 48px;
  /* Transparência de 60%: o fundo aparece suavemente sem perder leitura. */
  background: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 44px 0 42px;
  font-size: .9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:hover {
  border-color: var(--gray-400);
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--orange);
}

/* Estado temporário de bloqueio: o contador fica dentro de cada campo e não
   altera a altura do cartão. */
.login-form.login-lock-active .form-input {
  padding-right: 118px;
  cursor: not-allowed;
  opacity: .78;
}
.login-form.login-lock-active .toggle-password {
  display: none;
}
.login-lock-indicator {
  position: absolute;
  right: 11px;
  top: 50%;
  z-index: 3;
  min-width: 82px;
  padding: 5px 8px;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 7px;
  color: #c2410c;
  background: rgba(255, 247, 237, .94);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

/* ── Toggle senha ── */
.toggle-password {
  position: absolute;
  right: 14px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  padding: 4px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.toggle-password:hover { color: var(--orange); }
.toggle-password:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── Lembrar de mim ── */
.form-remember {
  margin-top: -4px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
  user-select: none;
}

.remember-check { display: none; }

.remember-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}

.remember-check:checked + .remember-custom {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(255,145,29,.4);
}

.remember-check:checked + .remember-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

/* ── Botão de login ── */
.btn-login {
  height: 52px;
  width: 100%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .45s ease;
}

.btn-login:hover::before { left: 100%; }

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,145,29,.5);
  filter: brightness(1.08);
}
.btn-login:disabled,
.btn-login:disabled:hover {
  cursor: not-allowed;
  transform: none;
  filter: saturate(.55);
  opacity: .72;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .16);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: var(--shadow-orange);
}

/* ── Loader do botão ── */
.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Links do rodapé ── */
.login-footer-links {
  text-align: center;
  margin-top: 20px;
}

.link-forgot {
  font-size: .85rem;
  color: var(--orange);
  font-weight: 500;
  transition: color var(--transition), letter-spacing var(--transition);
}

.link-forgot:hover {
  color: var(--orange-light);
  letter-spacing: .02em;
}

/* ── Rodapé ── */
.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.05);
}

.login-footer p {
  font-size: .72rem;
  color: var(--gray-500);
  letter-spacing: .02em;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card { padding: 32px 20px 28px; }
  .login-title { font-size: 1.1rem; }
}

/* No celular, os arcos ficam em cantos opostos com dimensões próprias.
   A versão desktop usa três feixes grandes; reproduzi-la em uma viewport
   estreita fazia as curvas se cruzarem sobre o formulário. */
@media (max-width:600px) {
  html,
  body {
    width:100%;
    height:100%;
    min-height:100%;
    overflow:hidden;
  }
  .login-bg {
    width:100vw;
    height:100vh;
    height:100lvh;
    min-height:0;
    overflow:hidden;
    /* O cartão fica centralizado verticalmente no celular, com respiro
       equilibrado acima e abaixo, sem criar rolagem vertical. */
    align-items:center;
  }
  .login-bg-grid {
    inset:auto;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    height:100lvh;
  }
  .login-beam-left,
  .login-beam-right {
    width:540px;
    height:540px;
    animation:none;
  }
  .login-beam-left {
    left:-350px;
    bottom:-310px;
  }
  .login-beam-right {
    right:-355px;
    top:-315px;
  }
  .login-beam-left::before,
  .login-beam-right::before {
    inset:22px;
    animation:none;
  }
  /* No mobile, o login fica mais limpo sem os arcos decorativos; eles
     continuam normalmente disponíveis nas telas maiores. */
  .login-beam-left,
  .login-beam-right,
  .login-beam-accent { display:none; }
  .login-fiber-lights { display:none; }

  /* Compacta o cartão para que todo o login fique em uma única tela, sem
     criar rolagem vertical mesmo em celulares com pouca altura. */
  .login-wrapper {
    width:100%;
    max-width:440px;
    max-height:100%;
    position:relative;
    top:-48px;
    /* Pequeno respiro superior, mantendo o cartão próximo do topo no
       celular e sem desperdiçar a área útil da tela. */
    padding:22px 12px 12px;
  }
  .login-card {
    max-height:calc(100lvh - 34px);
    padding:22px 18px 16px;
    /* No mobile não há um cartão destacado: a própria tela é o login,
       mantendo apenas os contornos individuais dos campos e botões. */
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .login-card::before,
  .card-accent-line { display:none; }
  .login-logo { margin-bottom:12px; padding:0 4px; }
  .login-logo-image { width:min(100%,190px); }
  .login-title { font-size:1.05rem; }
  .login-subtitle { margin-bottom:20px; font-size:.7rem; }
  .login-form { gap:14px; }
  .form-group { gap:6px; }
  .form-label { font-size:.72rem; }
  .form-input { height:44px; padding-left:38px; padding-right:40px; font-size:.9rem; }
  .input-icon { left:12px; }
  .toggle-password { right:10px; }
  .remember-label { gap:8px; font-size:.78rem; }
  .remember-custom { width:16px; height:16px; }
  .btn-login { height:46px; font-size:.8rem; }
  .login-footer-links { margin-top:14px; }
  .link-forgot { font-size:.76rem; }
  .login-footer { margin-top:16px; padding-top:13px; }
  .login-footer p { font-size:.62rem; }
}

@media (max-width:600px) and (max-height:640px) {
  .login-wrapper { padding-top:16px; }
  .login-card { padding-top:16px; padding-bottom:12px; }
  .login-logo { margin-bottom:8px; }
  .login-logo-image { width:min(100%,160px); }
  .login-subtitle { margin-bottom:12px; }
  .login-form { gap:11px; }
  .login-footer-links { margin-top:10px; }
  .login-footer { margin-top:10px; padding-top:9px; }
}

/* Desktop sem cartão externo: a própria página é a superfície do login. */
@media (min-width:601px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-bg {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 20px clamp(24px, 7vw, 120px);
    background: var(--bg-page);
    overflow: visible;
  }

  .login-wrapper {
    max-width: 440px;
    padding: 0;
    max-height: none;
    top: 0;
    margin: 0 auto;
  }

  .login-card {
    padding: 22px 36px 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .login-card::before,
  .card-accent-line { display: none; }

  .login-logo {
    margin-bottom: 16px;
    padding: 0;
  }

  .login-logo-image {
    width: min(100%, 250px);
    filter: drop-shadow(0 8px 16px rgba(255,145,29,.18));
  }

  .form-input {
    background: rgba(255,255,255,.84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .form-input:hover { background: rgba(255,255,255,.91); }
  .form-input:focus { background: rgba(255,255,255,.97); }

  .login-title { font-size: 1.3rem; }
  .login-subtitle { margin-bottom: 18px; }
  .login-form { gap: 14px; }
  .login-footer-links { margin-top: 14px; }
  .login-footer { margin-top: 16px; padding-top: 12px; }
}

/* ═══════════════════════════════════════════
   Fluxo de Recuperação de Senha
   ═══════════════════════════════════════════ */

/* ── Step indicator ── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 22px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 5px;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: var(--gray-400, #9ca3af);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.step-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--gray-400, #9ca3af);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s;
}

.step-item--active .step-circle {
  background: linear-gradient(135deg, var(--orange, #f97316), var(--orange-light, #fb923c));
  border-color: var(--orange, #f97316);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.2), 0 4px 12px rgba(249,115,22,.3);
}

.step-item--active .step-label {
  color: var(--orange, #f97316);
}

.step-item--done .step-circle {
  background: rgba(34,197,94,.12);
  border-color: #22c55e;
  color: #16a34a;
}

.step-item--done .step-label {
  color: #16a34a;
}

.step-line {
  flex: 0 0 48px;
  height: 2px;
  background: rgba(0,0,0,.08);
  min-width: 0;
  max-width: none;
  margin-bottom: 20px;
  border-radius: 1px;
  transition: background .3s;
}

.step-line--done {
  background: #22c55e;
}

/* ── E-mail hint na tela de código ── */
.otp-email-hint {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange, #f97316);
  word-break: break-all;
}

/* ── OTP inputs ── */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 4px 0 2px;
}

.otp-input {
  width: 48px;
  height: 58px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary, #1a2332);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  cursor: text;
  caret-color: var(--orange, #f97316);
}

.otp-input:hover {
  border-color: var(--gray-400, #9ca3af);
}

.otp-input:focus {
  border-color: var(--orange, #f97316);
  box-shadow: 0 0 0 3px rgba(249,115,22,.2);
  background: rgba(255,255,255,.95);
  transform: translateY(-2px) scale(1.04);
}

.otp-input:not(:placeholder-shown):not(:focus) {
  border-color: rgba(249,115,22,.45);
  background: rgba(249,115,22,.05);
}

/* ── Reenviar código ── */
.otp-resend-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.otp-resend-text {
  font-size: .8rem;
  color: var(--text-muted, #64748b);
}

.btn-resend {
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange, #f97316);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-resend:hover:not(:disabled) {
  background: rgba(249,115,22,.08);
}

.btn-resend:disabled {
  color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
}

#resend-countdown {
  font-size: .75rem;
  opacity: .7;
}

/* ── Barra de força da senha ── */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.strength-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  background: transparent;
  transition: width .35s ease, background .35s ease;
}

.strength-label {
  font-size: .72rem;
  font-weight: 600;
  min-width: 70px;
  text-align: right;
  transition: color .35s;
}

/* ── Hint de correspondência de senha ── */
.match-hint {
  font-size: .76rem;
  font-weight: 600;
  margin-top: 4px;
  min-height: 1.2em;
  transition: color .2s;
}

/* ── Subtitle com e-mail inline ── */
.login-subtitle strong {
  display: block;
  color: var(--orange, #f97316);
  font-size: .82rem;
  word-break: break-all;
  margin-top: 2px;
}

/* ── Responsive: OTP em telas muito estreitas ── */
@media (max-width: 380px) {
  .otp-input {
    width: 40px;
    height: 50px;
    font-size: 1.3rem;
    border-radius: 10px;
  }
  .otp-group { gap: 7px; }
  .step-line { flex-basis: 16px; }
}
