* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-body-legacy {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #0056b3 0%,
    #003d7a 100%
  ); /* Actualizado a azul de marca #0056b3 */
  color: #333;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Botón volver esquina */
.btn-back-corner {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-back-corner:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-5px);
  color: #fff;
}

.contenedor-login {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  width: 710px;
  max-width: 95vw;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.panel-izquierdo {
  width: 320px;
  background: #ffffff;
  padding: 40px 20px; /* Un poco menos de padding lateral */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.imagen-logo {
  width: 130px; /* Un toque más pequeño */
  margin-bottom: 20px;
}

.nombre-clinica {
  font-size: 19px; /* Ajuste fino */
  font-weight: 800;
  color: #003366;
  letter-spacing: 1px;
}

.subtitulo-clinica {
  font-size: 10px;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.panel-derecho {
  width: 380px; /* Ancho fijo similar al izquierdo */
  background: rgba(12, 88, 179, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px; /* Reducido para que no se sienta vacío */
}

.interior-derecho {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 50px 45px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo-login {
  font-family: "Georgia", serif;
  font-size: 28px;
  font-weight: 400;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.grupo-input {
  margin-bottom: 35px;
  position: relative;
  width: 100%;
}

.icono-input {
  display: none; /* Quitamos iconos para el look minimal de la imagen */
}

/* Label flotante o fijo minimalista */
.grupo-input span {
  display: block;
  font-size: 14px; /* Un toque más pequeño */
  color: #777;
  margin-bottom: 2px;
}

.campo-input {
  width: 100%;
  padding: 5px 0 10px 0; /* Menos padding arriba para juntar con el texto */
  border: none;
  border-bottom: 2px solid #ccc; /* Solo línea abajo */
  border-radius: 0;
  background: transparent;
  transition: border-color 0.3s;
  font-size: 16px;
  color: #444;
}

.campo-input:focus {
  border-bottom-color: #0056b3;
  outline: none;
}

/* Botón "Hoja" con Gradiente */
.btn-ingresar {
  width: 90%;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #a1c4fd 0%, #0056b3 100%);
  color: #fff;
  border: none;
  /* Hoja: Esquina superior derecha y inferior izquierda redondeadas, superior izquierda y inferior derecha agudas */
  border-radius: 40px 0 40px 40px;
  font-weight: 500;
  font-size: 19px;
  text-transform: uppercase;
  font-family: "Georgia", serif;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.btn-ingresar:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 86, 179, 0.35);
  opacity: 1;
}

.campo-input:focus {
  border-bottom-color: #0056b3;
  border-bottom-width: 2.5px;
  outline: none;
}

/* Alertas más discretas */
.mensajes {
  margin-bottom: 25px;
  width: 100%;
}
.alerta {
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  border: 1px solid transparent;
}
.alerta.error {
  background: #fff5f5;
  color: #c53030;
  border-color: #feb2b2;
}
.alerta.success {
  background: #f0fff4;
  color: #2f855a;
  border-color: #9ae6b4;
}

@media (max-width: 700px) {
  .contenedor-login {
    flex-direction: column;
    width: 90%;
  }
  .panel-izquierdo {
    width: 100%;
  }
  .btn-back-corner {
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    font-size: 13px;
  }
}
