/* 
$color1: #f32735    // rojo_principal
$color2: #f54b57    //rojo_claro 
$color3: #d81e2a    //rojo_obscuro
$color4: #23244d    //gris_obscuro 
*/

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, #f327352e, transparent 45%),
    radial-gradient(circle at bottom right, rgba(35, 36, 77, 0.35), transparent 45%);
}

.auth-card {
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  background: #fff;
  padding: 30px 40px;
}


.auth-tabs {
  margin-bottom: 25px;
}

.auth-tabs .tab a {
  font-weight: 600;
  color: #9e9e9e;
  text-transform: none;
}

.auth-tabs .tab a.active {
  color: #3949ab;
}

.tabs .indicator {
  background: #3949ab;
  height: 3px;
  border-radius: 3px;
}


.input-container {
  position: relative;
  margin-bottom: 18px;
}

.input-container input {
  border-radius: 10px !important;
  padding-left: 15px !important;
  border: 1px solid #ddd !important;
  height: 48px !important;
  box-shadow: none !important;
}

.input-container input:focus {
  border-color: #3949ab !important;
  box-shadow: 0 0 0 2px rgba(57, 73, 171, .15) !important;
}

.btn {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #f32735, #23244d);
  box-shadow: 0 8px 20px rgba(57, 73, 171, .35);
  transition: all .25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(57, 73, 171, .45);
}

.login-content,
.register-content {
  animation: fadeSlide .35s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.client-logo {
  padding: 10px !important;
  padding-bottom: 10px;
  background-color: #f32735;
}

.login-register .forms-container {
  width: 100%;
}

.login-register .forms-container .tabs li a.active {
  background-color: #23244d !important;
  color: white;
}


/* WHATSAPP LOGIC */
.phone-step {
  /* margin-bottom: 25px; */
}

.phone-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.country-select {
  width: 90px;
}

.country-select select {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.number-input input {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding-left: 12px;
}

.number-input input:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, .15);
}

.btn-secondary {
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  border-radius: 12px;
}

.code-step {
  margin-top: 20px;
  animation: fadeSlide .3s ease;
}

.btn-outline {
  background: #fff;
  color: #25D366;
  border: 2px solid #25D366;
  border-radius: 12px;
}

.btn-outline:hover {
  background: #25D366;
  color: #fff;
}

.code-input input.expired {
  border-color: #f32735;
  background: #fff5f5;
}

.code-meta {
  margin: 8px 0 12px;
  font-size: 13px;
}

.expires {
  color: #4caf50;
}

.expired-text {
  color: #f32735;
  font-weight: 600;
}

.btn-link {
  background: none;
  box-shadow: none;
  color: #25D366;
  text-transform: none;
  margin-top: 10px;
}

.btn-link[disabled] {
  color: #bdbdbd;
}

/* WHATSAPP LOGIC */



/* ===== HERO SPLASH ===== */
#hero-splash {
    position: fixed;
    inset: 0;
    background: #c62828; /* rojo */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#hero-logo {
    width: 260px;
    transition:
        transform 1s ease-in-out,
        opacity .5s ease-in-out;
}

/* Estado final */
#hero-splash.shrink #hero-logo {
    transform: scale(0.25) translateY(-220px);
    opacity: 0;
}

/* Ocultar splash */
#hero-splash.hide {
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}

.client-logo {
    opacity: 0;
    transition: opacity .4s ease;
}

body.hero-done .client-logo {
    opacity: 1;
}
/* ===== HERO SPLASH ===== */


/* =========================
   AUTH SWITCH
========================= */
.auth-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  /* margin-bottom: 20px; */
}

.auth-switch button {
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  font-weight: 600;
  transition: all .25s ease;
}

.auth-switch button.active {
  background: linear-gradient(135deg, #f32735, #23244d);
  color: #fff;
}

/* =========================
   STACK CONTAINER
========================= */
.stack-container {
  position: relative;
  min-height: 420px;
}

/* =========================
   STACK PANEL
========================= */
.stack-panel {
  position: absolute;
  inset: 0;
  transition: all .6s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}

/* ACTIVA */
.stack-panel.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translateY(0) scale(1);
}

/* ATRÁS */
.stack-panel.back {
  z-index: 1;
  opacity: .85;
  transform: translateY(24px) scale(.95);
  filter: blur(.4px);
}

/* =========================
   SMOOTH CONTENT
========================= */
.login-content,
.register-content {
  animation: fadeStack .4s ease;
}

@keyframes fadeStack {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   STACK CONTAINER
========================= */
.stack-container {
  position: relative;
  min-height: 520px; /* MISMO alto que tu auth-card */
}

/* =========================
   STACK PANEL (BASE)
========================= */
.stack-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(40px) scale(.96);
  transition: all .6s cubic-bezier(.4,0,.2,1);
}

/* =========================
   ACTIVA (ÚNICA VISIBLE)
========================= */
.stack-panel.active {
  position: relative;        /* ⭐ clave */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* =========================
   ATRÁS (NO FANTASMA)
========================= */
.stack-panel.back {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(.96);
  z-index: 1;
}

/* =========================
   SMOOTH CONTENT
========================= */
.login-content,
.register-content {
  animation: fadeStack .4s ease;
}

@keyframes fadeStack {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* ===== WHATSAPP VERIFIED ANIMATION ===== */

.whatsapp-verified {
  text-align: center;
  animation: fadeInScale .4s ease;
}

.verified-text {
  color: #25D366;
  font-weight: 600;
  margin-top: 10px;
  font-size: 15px;
}

/* SVG CHECK */
.check-animation {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.check-animation svg {
  width: 100%;
  height: 100%;
}

.check-circle {
  stroke: #25D366;
  stroke-width: 3;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: circleDraw .6s ease forwards;
}

.check-mark {
  stroke: #25D366;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw .35s ease forwards;
  animation-delay: .55s;
}

@keyframes circleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== END WHATSAPP VERIFIED ===== */


.password-field{
    position: relative;
}

.password-field input{
    padding-right: 42px;
}

.password-field i{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
    transition: color .2s ease;
}

.password-field i:hover{
    color: #25D366; /* WhatsApp green vibe */
}
.input-container.with-eye{
    position: relative;
}

.input-container.with-eye input{
    padding-right: 0 !important;
}

.toggle-eye{
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.toggle-eye i{
    font-size: 1.5em !important;
    color: #777;
    transition: color .2s ease;
    top: 15px !important;
}

.toggle-eye:hover i{
    color: #25D366;
}

