/* login.css — login/registro/recuperar */
html, body { background-color: #ffffff !important; }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #FEF3E2;
}
.contenedor {
  display: flex;
  width: 90%;
  max-width: 850px;
  min-height: 610px;
  background: #16195E;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgb(243, 243, 187);
}
.bienvenido-section {
  width: 50%;
  background: #16195E;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 40px;
}
.bienvenido-section .bienvenido {
  font-size: 36px;
  margin-bottom: 20px;
  animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.bienvenido-section p { font-size: 18px; }
.logo_ceij { width: 150px; margin-bottom: 20px; }
.boton-volver {
  position: absolute; top: 15px; left: 15px;
  width: 45px; height: 45px; border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.boton-volver:hover {
  background-color: rgba(255,255,255,0.8);
  color: black; transform: translateX(-5px);
  box-shadow: 5px 0 18px rgba(105,105,105,0.8);
}
.forms-contenedor {
  position: relative; width: 50%; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  transition: height 0.4s ease;
}
.form-contenedor {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  padding: 40px; transition: transform 0.5s ease-in-out;
  display: flex; flex-direction: column; justify-content: center;
}
.form-contenedor h2 { margin-bottom: 20px; text-align: center; color: white; }
.form-contenedor input {
  width: 100%; padding: 15px; margin: 10px 0;
  border: 1px solid #808e9b; border-radius: 5px;
}
.form-contenedor input::placeholder { color: #819A91; }
.form-contenedor button:not(.boton-flecha) {
  width: 100%; padding: 15px; margin-top: 10px;
  background: #2A2D7A; border: 2px solid #4A4DB0; border-radius: 8px;
  color: #fff; font-size: 16px; cursor: pointer; transition: 0.3s; font-weight: 600;
}
.form-contenedor button:hover { background: #3F42A0; }
.form-contenedor p { text-align: center; margin-top: 20px; color: #C8CCE0; font-size: 14px; }
.form-contenedor p span { color: #ffffff; cursor: pointer; font-weight: 700; text-decoration: underline; }
.login { transform: translateX(0); }
.registro { transform: translateX(100%); }
.recuperacionc { transform: translateX(200%); }
.activo-login .login { transform: translateX(0); }
.activo-login .registro, .activo-login .recuperacionc { transform: translateX(100%); }
.activo-registro .login { transform: translateX(-100%); }
.activo-registro .registro { transform: translateX(0); }
.activo-recuperacion .login { transform: translateX(-200%); }
.activo-recuperacion .registro { transform: translateX(200%); }
.activo-recuperacion .recuperacionc { transform: translateX(0); }
.boton-flecha {
  width: 45px; height: 45px; border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all 0.3s;
  font-size: 8px; align-self: flex-start;
}
.boton-flecha:hover {
  background-color: rgba(255,255,255,0.8);
  color: black; transform: translateX(-5px);
  box-shadow: 5px 0 18px rgba(105,105,105,0.8);
}
.logo_ceijmt { display: none; }
@media (max-width: 1024px) {
  body { background-color: #FEF3E2; }
  .contenedor { flex-direction: column; width: 90%; max-width: 600px; min-height: auto; align-items: center; }
  .bienvenido-section { display: none; }
  .forms-contenedor { width: 100%; height: auto; position: relative; overflow: visible; flex-direction: column; align-items: center; }
  .form-contenedor { position: relative; width: 100%; min-height: auto; padding: 15px 25px; justify-content: flex-start; transform: none !important; opacity: 1 !important; display: none; }
  .activo-login .login, .activo-registro .registro, .activo-recuperacion .recuperacionc { display: flex !important; }
  .logo_ceijmt { display: block !important; width: 110px; margin: 15px auto 20px; }
  .boton-volver { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255,255,255,0.25); color: white; display: flex; align-items: center; justify-content: center; z-index: 20; border: none; }
  .boton-volver:hover { background-color: rgba(255,255,255,0.8); color: black; }
  .form-contenedor .boton-flecha { position: absolute !important; top: 12px !important; left: 12px !important; margin: 0 !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; background-color: rgba(255,255,255,0.25) !important; color: white !important; border: none !important; z-index: 20 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .form-contenedor .boton-flecha i { font-size: 18px !important; }
  .boton-volver { position: absolute !important; top: 12px !important; right: 12px !important; left: auto !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; background-color: rgba(255,255,255,0.25) !important; color: white !important; border: none !important; z-index: 20 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .boton-volver:hover, .form-contenedor .boton-flecha:hover { background-color: rgba(255,255,255,0.8) !important; color: black !important; }
  .form-contenedor .boton-flecha, .boton-volver { backdrop-filter: blur(4px) !important; }
  .recuperacionc h2 { margin-top: 50px !important; text-align: center !important; color: white !important; }
  .form-contenedor { position: relative !important; }
}
@media (max-width: 400px) {
  .recuperacionc h2 { margin-top: 60px !important; }
}
