/* =====================
   VERIFICAÇÃO DE CÓDIGO (LOGIN) - Updated structure matching cadastro
   ===================== */

/* Container principal da verificação */
.step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 6px 0;
}

.step-verification {
    display: none; /* hidden by default, shown by JS */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Reset container (caixa da verificação) - copied from cadastro.css */
.reset-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: clamp(20px, 4vw, 38px) clamp(16px, 3vw, 30px);
    width: 100%;
    max-width: clamp(320px, 85vw, 560px);
    animation: fadeInDown 0.6s cubic-bezier(.68, -0.55, .27, 1.55);
    text-align: center;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.reset-container h2 {
    color: #0e90dc;
    font-size: clamp(18px, 2.6vw, 24px);
    margin-bottom: clamp(8px, 1.2vw, 12px);
    font-weight: 600;
}

.reset-container label {
    display: block;
    margin-top: clamp(14px, 2vw, 20px);
    margin-bottom: clamp(6px, 0.8vw, 8px);
    color: #444;
    font-weight: 500;
    text-align: left;
    font-size: clamp(13px, 1.6vw, 16px);
}

/* Inputs genéricos dentro da caixa de verificação */
.reset-container input {
    border: 1px solid #cfd8dc;
    background: #f7f8fa;
    outline: none;
    font-size: clamp(14px, 2vw, 18px);
    padding: clamp(10px, 1.8vw, 14px) clamp(20px, 4vw, 28px) clamp(10px, 1.8vw, 14px) clamp(8px, 1.2vw, 10px);
    width: 100%;
    box-sizing: border-box;
    color: #000;
    border-radius: 8px;
    margin-bottom: clamp(12px, 2vw, 18px);
    box-shadow: 0 1px 4px rgba(31, 38, 135, 0.07);
    transition: all 0.2s ease;
}

.reset-container input:focus {
    color: #073048;
    box-shadow: 0 0 0 2px #009ef7;
    border-color: #009ef7;
}

/* Input específico do código com estilo destacado */
.reset-container #codigo,
#codigo {
    border: 1px solid #bfcbdf;
    background: #dbebff;
    outline: none;
    font-size: clamp(20px, 3.2vw, 28px);
    padding: clamp(12px, 2.5vw, 16px) 0;
    width: 100%;
    color: #333;
    text-align: center;
    letter-spacing: clamp(4px, 1.2vw, 10px);
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: clamp(12px, 1.8vw, 18px);
}

/* Botões dentro da caixa */
.reset-container button {
    width: 100%;
    background: linear-gradient(90deg, #009ef7 0%, #6171ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: clamp(10px, 2vw, 14px) 0;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    margin-top: clamp(8px, 1vw, 12px);
    cursor: pointer;
    box-shadow: 0 4px 16px 0 rgba(97, 113, 255, 0.10);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.reset-container button:hover { transform: translateY(-2px) scale(1.02); }

/* Ajustes de espaçamento para o formulário de verificação */
.reset-container form#verify_code_form_login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.reset-container label {
    margin-top: 6px;
    margin-bottom: 6px;
}

.reset-container #countdown-display {
    margin-bottom: 6px;
}

.reset-container #resend-container {
    margin-top: 8px;
}

.reset-container button#btn_verify_code_login {
    margin-top: 4px;
}

/* Garantir que input do código e botão preencham bem o espaço */
.reset-container input#codigo {
    width: 100%;
}

.text-muted { color: #666 !important; }
.small { font-size: clamp(12px, 1.4vw, 14px) !important; }

/* Estilo para a inner countdown criada dinamicamente (match visual com forgot_password) */
.countdown-inner {
    padding: clamp(8px, 1.2vw, 18px);
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    border-left: 4px solid #009ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #073048;
    font-size: clamp(13px, 1.4vw, 15px);
    box-shadow: 0 2px 10px rgba(31, 38, 135, 0.05);
}

.countdown-inner .fas {
    color: #009ef7;
    margin-right: 6px;
    font-size: clamp(14px, 1.6vw, 18px);
}

.countdown-inner strong {
    color: #0b61a8;
    font-weight: 700;
}

/* Responsividade específica para verificação */
@media (max-width: 1024px) {
    .reset-container { max-width: 92vw; padding: 20px 15px; }
    .reset-container #codigo { font-size: 18px; letter-spacing: 5px; }
    .reset-container button { font-size: 15px; padding: 10px 0; }
}

@media (max-width: 480px) {
    .reset-container { padding: 16px; }
    .reset-container h2 { font-size: 16px; }
    .reset-container input { font-size: 14px; }
    .reset-container #codigo { font-size: 18px; letter-spacing: 6px; }
    .countdown-inner { padding: 8px; font-size: 13px; }
    .countdown-inner .fas { font-size: 14px; }
}

/* =====================
   CONTAINER PRINCIPAL E FORMULÁRIO DE LOGIN
   ===================== */

/* Estilo para o container principal */
form#loginForm {
    /* Aparência restaurada similar ao cadastro */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    width: 100%;
    max-width: clamp(340px, 48vw, 520px);
    margin: 24px auto; /* centraliza verticalmente com espaçamento */
    padding: clamp(16px, 2.5vw, 24px);
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.step-verification .input-container:focus-within {
  box-shadow: 0 0 0 2px #009ef7;
}

.step-verification .input-container i {
  color: #009ef7;
  font-size: clamp(18px, 3vw, 22px);
}

.step-verification .input-container input {
  border: none;
  background: transparent;
  outline: none;
  font-size: clamp(20px, 4vw, 28px);
  padding: clamp(12px, 2.5vw, 18px) 0;
  width: 100%;
  color: #333;
  text-align: center;
  letter-spacing: clamp(6px, 1.5vw, 10px);
  font-weight: 600;
}

.btn-verificar,
.btn-reenviar {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: clamp(12px, 2.5vw, 15px) 0;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 600;
  margin-top: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(97, 113, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-verificar {
  background: linear-gradient(90deg, #009ef7 0%, #6171ff 100%);
  color: #fff;
}

.btn-reenviar {
  background: linear-gradient(90deg, #dbe8f9 0%, #dcdef7 100%);
  color: #6c6c6c;
}

.btn-verificar:hover {
  background: linear-gradient(90deg, #6171ff 0%, #009ef7 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px 0 rgba(97, 113, 255, 0.3);
}

.btn-reenviar:hover {
  background: linear-gradient(90deg, #cbd9ec 0%, #ccceec 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px 0 rgba(97, 113, 255, 0.3);
}

.btn-verificar i,
.btn-reenviar i {
  font-size: clamp(16px, 2.5vw, 20px);
}

.btn-reenviar i {
  color: #6c6c6c;
}

/* =====================
   RESET E CONFIGURAÇÕES BÁSICAS
   ===================== */

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(120deg, #009ef7 0%, #6171ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  padding: 20px;
}

/* =====================
   FORMULÁRIO PRINCIPAL
   ===================== */

form {
  width: 100%;
  max-width: clamp(420px, 55vw, 520px);
  height: auto;
  background-color: white;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 158, 247, 0.15), 0 1.5px 6px rgba(97, 113, 255, 0.10);
  padding: clamp(25px, 3vw, 35px) clamp(20px, 2.5vw, 30px);
  transition: transform 0.7s ease-in-out;
  position: relative;
}

/* Estilos dos elementos internos do formulário */
form * {
  color: #000;
  outline: none;
  border: none;
  font-family: 'Poppins', sans-serif;
}

/* Títulos */
form h3 {
  font-family: 'Segoe Print', Verdana, sans-serif;
  font-weight: bold;
  color: #080710;
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

form h2 {
  font-family: 'Segoe Print', Verdana, sans-serif;
  font-weight: bold;
  color: #080710;
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.2;
}

/* Logo */
img {
  max-width: clamp(100px, 18vw, 140px);
  height: auto;
  display: block;
  margin: 0 auto clamp(15px, 2vw, 25px);
}

/* Links no formulário */
form a {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.4;
  text-align: center;
  margin-bottom: clamp(15px, 2vw, 20px);
  margin-left: 2px;
  font-family: 'Segoe Print', Verdana, sans-serif;
  font-weight: bold;
  color: #009ef7;
  text-decoration: none;
}

/* Parágrafos */
p {
  cursor: pointer;
  transition: color 0.2s ease;
  color: #000000;
}

p:hover {
  color: #2c72cd;
}

/* Container da linha horizontal */
.hr-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: clamp(10px, 2vw, 15px) 0;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.hr-container hr {
  height: 1px;
  width: 65%;
  background-color: rgb(245, 245, 245);
  border: none;
  margin-bottom: clamp(15px, 2vw, 20px);
}

/* Labels */
label {
  display: block;
  margin-top: clamp(15px, 2vw, 20px);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 300;
  color: #424242;
}

/* Container dos inputs */
.input-container {
  display: flex;
  align-items: center;
  margin-top: clamp(15px, 2vw, 20px);
  position: relative;
  width: 100%;
}

/* Ícones dentro dos inputs */
.input-container i {
  position: absolute;
  left: 10px;
  color: #666;
  font-size: clamp(16px, 2vw, 18px);
  z-index: 1;
}

/* Estilo dos inputs */
.input-container input {
  width: 100%;
  height: clamp(45px, 6vw, 50px);
  padding-left: clamp(35px, 4vw, 40px);
  border-radius: 5px;
  border: 1px solid #e3e3e3;
  background-color: white;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 400;
  color: #000;
  outline: none;
  transition: border-color 100ms;
  font-family: 'Poppins', sans-serif;
}

/* Remove cor de preenchimento automático */
input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  background-color: white;
  transition: background-color 5000s ease-in-out 0s;
}

/* Muda a cor do ícone quando o input está em foco */
.input-container input:focus~i,
.input-container input:focus+i,
.input-container:focus-within i {
  color: #009ef7;
}

/* Botão principal */
button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 25px);
  width: 100%;
  background: #009ef7;
  color: #ffffff;
  padding: clamp(10px, 1.5vw, 12px) 0;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: background-color 0.7s ease;
}

button i {
  margin-right: 10px;
  font-size: clamp(16px, 2vw, 18px);
  color: white;
}

button:hover {
  background-color: #2c72cd;
}

/* Spans dos links */
#span_perm,
#span_lost {
  font-size: clamp(12px, 1.8vw, 14px);
  margin-left: 5px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

#span_lost:hover,
#span_perm:hover {
  color: #009ef7 !important;
}

/* Links sociais */
.social {
  margin-top: clamp(20px, 4vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between; /* place left and right at extremes */
  flex-wrap: wrap;
  gap: 10px;
}

.social > div {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.27);
  width: auto; /* allow intrinsic sizing, override inline widths */
  border-radius: 3px;
  color: #eaf0fb;
  text-align: center;
  margin: 0 5px;
  transition: background-color 0.3s ease;
  padding: 10px;
}

/* Ensure anchor and span inside social blocks align with icon */
.social > div a,
.social > div span {
  display: inline-flex;
  align-items: center;
  vertical-align: middle; /* force middle alignment relative to icon */
  line-height: 1; /* avoid baseline shifting */
  font-size: clamp(12px, 1.8vw, 14px); /* match #span_perm size */
  margin: 0; /* remove inherited margins */
  padding: 0; /* remove inherited padding */
}

/* Make the icon an inline-flex box so its center matches the text center */
.social > div i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  margin: 0; /* remove any inherited margin */
}

/* Ensure the social container aligns children vertically centered */
.social,
.social > div {
  align-items: center;
}

/* Links do rodapé */
.footer-links {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: #333333;
}

.footer-links p {
  margin: 0 10px;
  cursor: pointer;
  transition: color 1s ease;
  color: #333333;
  font-size: clamp(12px, 2vw, 14px);
}

.footer-links p:hover {
  color: #6171ff;
}

/* Toast customização */
.iziToast-wrapper.iziToast-wrapper-center {
  transform: translateY(-35%) !important;
}
/* =====================
   MEDIA QUERIES RESPONSIVAS
   ===================== */

/* Tablets grandes e desktops pequenos */
@media (max-width: 1024px) {
  form {
    max-width: clamp(400px, 70vw, 600px) !important;
    padding: clamp(30px, 4vw, 40px) clamp(25px, 3vw, 30px);
  }
  
  .footer-links {
    bottom: 3%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  form {
    max-width: 95vw;
    padding: clamp(25px, 4vw, 35px) clamp(20px, 3vw, 25px);
  }
  
  form h3 {
    font-size: clamp(28px, 5vw, 36px);
  }
  
  .footer-links {
    position: relative;
    margin-top: 30px;
    bottom: auto;
    left: auto;
    transform: none;
  }
}

/* Smartphones */
@media (max-width: 480px) {
  body {
    padding: 10px;
    align-items: flex-start;
    padding-top: 5vh;
  }
  
  form {
    max-width: 100%;
    padding: 20px 15px;
    border-radius: 8px;
  }
  
  form h3 {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  img {
    max-width: clamp(100px, 0vw, 150px);
  }
  
  .input-container {
    margin-top: 20px;
  }
  
  .input-container input {
    height: clamp(45px, 10vw, 55px);
    padding-left: clamp(35px, 8vw, 45px);
  }
  
  .input-container i {
    left: 8px;
  }
  
  button {
    margin-top: 25px;
    padding: clamp(12px, 3vw, 15px) 0;
  }
  
  .social {
    flex-direction: column;
    align-items: center;
  }
  
  .social div {
    width: 80%;
    margin: 5px 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Smartphones pequenos */
@media (max-width: 360px) {
  form {
    padding: 15px 10px;
  }
  
  form h3 {
    font-size: clamp(20px, 6vw, 28px);
  }
  
  .input-container input {
    font-size: clamp(12px, 3vw, 16px);
  }
  
  button {
    font-size: clamp(12px, 3vw, 14px);
  }
}

/* =====================
   OTIMIZAÇÕES PARA ZOOM
   ===================== */

/* 1920x1080 com zoom 125% (viewport efetivo ~1536px) */
@media screen and (min-width: 1500px) and (max-width: 1600px) {
 
  form {
    
    max-width: 450px !important;
    padding: 30px 25px;
  }
  
  form h3 {
    font-size: 32px;
  }
  
  form h2 {
    font-size: 16px;
  }
  
  img {
    max-width: 120px;
    margin-bottom: 20px;
  }
  
  label {
    font-size: 14px;
    margin-top: 18px;
  }
  
  .input-container {
    margin-top: 18px;
  }
  
  .input-container input {
    height: 48px;
    font-size: 14px;
    padding-left: 38px;
  }
  
  .input-container i {
    font-size: 16px;
  }
  
  button {
    font-size: 14px;
    margin-top: 22px;
    padding: 11px 0;
  }
  
  button i {
    font-size: 16px;
  }
  
  #span_perm,
  #span_lost {
    font-size: 13px;
  }
  
  form a {
    font-size: 20px;
    margin-bottom: 18px;
  }
}

/* Zoom 110% */
@media screen and (min-width: 1700px) and (max-width: 1800px) {
  form {
    max-width: clamp(420px, 42vw, 480px) !important;
  }
}

/* Zoom 125% - Genérico para outras resoluções */
@media screen and (min-width: 1400px) and (max-width: 1500px) {
  form {
    max-width: clamp(360px, 58vw, 420px) !important;
  }
}

/* Zoom 150% */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
  form {
    max-width: clamp(380px, 55vw, 480px) !important;
  }
}

/* Zoom 175% */
@media screen and (min-width: 1000px) and (max-width: 1200px) {
  form {
    max-width: clamp(360px, 60vw, 460px) !important;
  }
}

/* Zoom 200% */
@media screen and (min-width: 800px) and (max-width: 1000px) {
  form {
    max-width: clamp(340px, 65vw, 440px) !important;
  }
}

/* =====================
   ESTADOS E TRANSIÇÕES
   ===================== */

/* Focus states */
.input-container input:focus {
  border-color: #009ef7;
  box-shadow: 0 0 0 2px rgba(0, 158, 247, 0.2);
}

/* Hover effects */
form a:hover {
  color: #2c72cd;
}

.social div:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Loading states */
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: #ccc;
  transform: none;
}

/* =====================
   ACESSIBILIDADE
   ===================== */

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
  form {
    transition: none;
  }
  
  button {
    transition: background-color 0.2s ease;
  }
  
  .btn-verificar,
  .btn-reenviar {
    transition: background-color 0.2s ease;
  }
  
  .btn-verificar:hover,
  .btn-reenviar:hover {
    transform: none;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  form {
    border: 3px solid #000;
  }
  
  .input-container input {
    border: 2px solid #000;
  }
  
  button {
    border: 2px solid #000;
  }
}

/* =====================
   UTILITÁRIOS
   ===================== */

/* Ocultar elementos visualmente mas manter para screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animação suave para todos os elementos */
* {
  transition: all 0.2s ease;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Make the login verification box flatter and more compact */
.step-verification .reset-container {
    box-shadow: none !important; /* remove heavy shadow for this box */
    border: 1px solid rgba(31,38,135,0.06);
    background: #fff;
    max-width: clamp(300px, 42vw, 480px);
    padding: clamp(12px, 2.2vw, 20px);
}

/* Make the inner form tighter */
.step-verification form#verify_code_form_login {
    gap: 8px;
    align-items: stretch;
}

.step-verification input#codigo {
    font-size: clamp(16px, 2.2vw, 22px) !important;
    letter-spacing: clamp(3px, 0.9vw, 6px) !important;
    padding: clamp(8px, 1.2vw, 12px) 0 !important;
    border-radius: 8px;
    margin-bottom: 8px;
}

.step-verification .reset-container button,
.step-verification .reset-container button#btn_verify_code_login {
    font-size: clamp(12px, 1.6vw, 14px) !important;
    padding: clamp(8px, 1.2vw, 12px) 0 !important;
    border-radius: 8px;
    margin-top: 6px !important;
}

/* Reduce spacing for resend area */
.step-verification #resend-container { margin-top: 10px !important; }
.step-verification #countdown-display { margin-bottom: 10px !important; }

/* Laptops around 1360/1366 */
@media screen and (min-width: 1340px) and (max-width: 1375px) and (max-height: 820px) {
    .step-verification .reset-container { max-width: 380px; padding: 18px 14px; }
    .step-verification input#codigo { font-size: 18px; letter-spacing: 4px; }
    .step-verification .reset-container button { font-size: 13px; padding: 9px 0; }
}

/* 1440x900 tuning */
@media screen and (min-width: 1410px) and (max-width: 1465px) and (max-height: 940px) {
    .step-verification .reset-container { max-width: 420px; padding: 22px 22px; }
    .step-verification input#codigo { font-size: 19px; letter-spacing: 5px; }
    .step-verification .reset-container button { font-size: 14px; padding: 10px 0; }
}

/* Mobile small: tighten further */
@media (max-width: 480px) {
    .step-verification .reset-container { max-width: 92vw; padding: 12px; }
    .step-verification input#codigo { font-size: 16px; letter-spacing: 4px; }
    .step-verification .reset-container button { font-size: 12px; padding: 8px 0; }
}

/* Compact visual tweaks for verification code box and elements */
.step-verification .reset-container h2 {
    font-size: clamp(15px, 1.8vw, 18px) !important;
    margin-bottom: 10px !important;
}

.step-verification .reset-container label {
    font-size: clamp(12px, 1.4vw, 14px) !important;
    margin-top: 8px !important;
}

.step-verification input#codigo {
    font-size: clamp(14px, 1.8vw, 20px) !important;
    letter-spacing: clamp(2px, 0.7vw, 6px) !important;
    padding: clamp(6px, 1vw, 10px) 0 !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}

.step-verification .reset-container button,
.step-verification .reset-container button#btn_verify_code_login {
    font-size: clamp(14px, 1.2vw, 15px) !important;
    padding: clamp(7px, 1vw, 13px) 0 !important;
}

.step-verification .countdown-inner { font-size: clamp(12px, 1.2vw, 14px) !important; padding: clamp(6px, 0.8vw, 12px) !important; }

/* Slightly narrower card on common laptop sizes */
@media screen and (max-width: 1375px) {
    .step-verification .reset-container { max-width: 420px !important; padding: 22px 22px !important; }
    .step-verification input#codigo { font-size: 16px !important; letter-spacing: 3px !important; }
    .step-verification .reset-container button { font-size: 12px !important; padding: 8px 0 !important; }
}

/* Medium tablets */
@media screen and (max-width: 1024px) {
    .step-verification .reset-container { max-width: 320px !important; padding: 14px 12px !important; }
    .step-verification input#codigo { font-size: 16px !important; letter-spacing: 3px !important; padding: 8px 0 !important; }
    .step-verification .reset-container button { font-size: 12px !important; padding: 8px 0 !important; }
}

/* Small tablets / large phones */
@media screen and (max-width: 768px) {
    .step-verification .reset-container { max-width: 300px !important; padding: 12px 10px !important; }
    .step-verification input#codigo { font-size: 15px !important; letter-spacing: 3px !important; }
    .step-verification .reset-container button { font-size: 12px !important; padding: 7px 0 !important; }
}

/* Phones */
@media screen and (max-width: 480px) {
    .step-verification .reset-container { max-width: 92vw !important; padding: 10px 10px !important; }
    .step-verification input#codigo { font-size: 14px !important; letter-spacing: 2px !important; padding: 6px 0 !important; }
    .step-verification .reset-container button { font-size: 12px !important; padding: 7px 0 !important; }
    .step-verification .countdown-inner { font-size: 12px !important; }
}

/* Make the email instructions smaller and responsive inside the verification step */
.step-verification #email_instructions {
    font-size: clamp(13px, 1.2vw, 14px) !important;
    color: #556b76;
    margin-bottom: 14px !important;
}

@media screen and (max-width: 1375px) {
    .step-verification #email_instructions { font-size: 13px !important; }
}
@media screen and (max-width: 1024px) {
    .step-verification #email_instructions { font-size: 12px !important; }
}
@media screen and (max-width: 480px) {
    .step-verification #email_instructions { font-size: 12px !important; margin-bottom: 10px !important; }
}

/* Ensure the inner verification form has no box-shadow (override generic form styles) */
.step-verification form#verify_code_form_login {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important; /* layout controlled by .reset-container */
}

/* Also remove any inset shadows on inputs inside this form */
.step-verification form#verify_code_form_login input,
.step-verification form#verify_code_form_login button {
    box-shadow: none !important;
}