* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

.cajafuera {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #6A11CB, #2575FC);
}

.formulariocaja {
  width: 420px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

/* TABS - sin overflow:hidden para que el slider no se corte */
.botondeintercambiar {
  width: 220px;
  height: 44px;
  margin: 26px auto 0;
  position: relative;
  border-radius: 30px;
  background: #f0f0f0;
  display: flex;
}

#btnvai {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 44px;
  border-radius: 30px;
  background: linear-gradient(135deg, #FF4B91, #8E2DE2);
  transition: left .4s ease;
  pointer-events: none;
}

.botoncambiarcaja {
  width: 110px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  font-weight: bold;
  font-size: 13px;
  transition: color .3s;
}

/* VENTANA: recorta el rail pero no los tabs */
.ventana-recorte {
  overflow: hidden;
}

/* RAIL: dos formularios lado a lado */
.rail {
  display: flex;
  width: 840px;
  transition: transform .5s ease;
}

/* Cada formulario: 420px */
.grupo-entradas {
  width: 420px;
  flex-shrink: 0;
  padding: 18px 40px 30px;
}

.logovai {
  text-align: center;
  margin-bottom: 14px;
}

.logovai img {
  width: 150px;
  max-height: 70px;
  object-fit: contain;
}

.grupo-entradas b {
  display: block;
  margin-top: 11px;
  margin-bottom: 4px;
  color: #333;
  font-size: 13px;
}

.cajaentradatexto,
.cajaentradarecaptcha {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: border-color .3s;
}

.cajaentradatexto:focus,
.cajaentradarecaptcha:focus {
  border-color: #8E2DE2;
}

.fondorecaptcha {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-top: 7px;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: bold;
  color: #5A189A;
  letter-spacing: 7px;
  user-select: none;
  font-family: monospace;
}

.botonenviar {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  font-size: 15px;
  font-weight: bold;
  background: linear-gradient(135deg, #8E2DE2, #FF4B91);
  transition: opacity .2s;
  margin-top: 2px;
}

.botonenviar:hover {
  opacity: .9;
}
