/* Estilos generales del cuerpo y fondo */
#fondo-login {
  min-height: 100vh;
  background: linear-gradient(135deg, #4338ca, #3730a3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#layoutAuthentication_content {
  width: 100%;
}

/* Contenedor principal más ancho */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.col-lg-4 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Estilo de la tarjeta principal */
.card {
  background: rgba(17, 24, 39, 0.95);
  border-radius: 24px;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  min-height: 500px;
}

.custom-margin {
  margin: 0;
}

/* Efecto de ondas en el fondo - Mejorado para coincidir mejor con el diseño */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(79, 70, 229, 0.4) 0%,
      rgba(124, 58, 237, 0.6) 50%,
      rgba(37, 99, 235, 0.8) 100%);
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23FF00FF" d="M44.7,-76.4C58.8,-69.2,71.8,-59.1,79.6,-45.8C87.4,-32.5,90,-16.3,88.5,-1.5C87,13.3,81.4,26.7,73.6,38.4C65.8,50.1,55.8,60.2,43.7,67.9C31.6,75.7,17.8,81.1,2.4,77.8C-13,74.5,-26,62.4,-39.7,54.6C-53.4,46.8,-67.8,43.2,-70.8,33.5C-73.8,23.8,-65.5,7.9,-62.4,-8.3C-59.3,-24.5,-61.4,-41,-55.3,-54.1C-49.2,-67.2,-34.9,-76.9,-19.7,-83.7C-4.4,-90.5,12.8,-94.4,27.7,-89.8C42.6,-85.2,55.2,-72.1,67.8,-65.1Z" transform="translate(100 100)" /></svg>') no-repeat center center;
  opacity: 0.1;
  z-index: 0;
}

/* Contenido de la tarjeta */
.card-body {
  position: relative;
  z-index: 2;
  padding: 4rem;
  width: 100%;
}

/* Estilos del logo y título */
.Logo {
  height: 90px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  margin-right: 130px;
  /* Alinea el logo a la izquierda */
}

.card-body h3 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Estilos de los campos del formulario */
.form-floating {
  margin-bottom: 1.5rem;
}

.form-control {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 1.2rem 0;
  color: #fff;
  font-size: 1.2rem;
  height: auto;
  width: 70%;
  /* Ajusta el ancho de los inputs */
  margin-left: 0;
  /* Alinea los inputs a la izquierda */
}

.form-control:focus {
  background: transparent;
  border-color: #8b5cf6;
  box-shadow: none;
  color: #fff;
}

/* Estilos de las etiquetas */
.form-floating label {
  color: rgba(255, 255, 255, 0.6);
  padding-left: 0;
  transform-origin: 0 0;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: #8b5cf6;
  transform: translateY(-1.5rem) scale(0.85);
}

/* Iconos en los inputs */
.form-floating label i {
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Botón mostrar contraseña */
#mostrarPassword {
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  z-index: 3;
  position: absolute;
  right: 130px;
  bottom: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

#mostrarPassword:hover {
  color: #8b5cf6;
}

/* Estilos del título */
#tituloLogin {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  width: 100%;
  text-align: left;
  margin-left: 50px; 
}

/* Botón de inicio de sesión */
.btn-custom {
  background: linear-gradient(to right, #8b5cf6, #6d28d9);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  margin-top: 2rem;
  width: 70%;
  /* Ajusta el ancho del botón */
  margin-left: 0;
  /* Alinea el botón a la izquierda */
}

.btn-custom:hover {
  background: linear-gradient(to right, #7c3aed, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .card-body {
    width: 100%;
    padding: 2rem;
  }

  .card::after,
  .card::before {
    display: none;
  }

  .card {
    background: rgba(17, 24, 39, 0.95);
    min-height: auto;
    margin-top: 4rem;
    /* Añade margen superior */
  }

  .container {
    padding: 1rem;
  }

  .btn-custom {
    width: 100%;
    /* Ajusta el ancho del botón en vista móvil */
  }

  .form-control {
    width: 100%;
    /* Ajusta el ancho de los inputs en vista móvil */
  }

  #mostrarPassword {
    right: 0;
    /* Alinea el botón a la derecha */
  }

  .Logo {
    margin-right: 0;
    /* Alinea el logo al centro */
  }

  #tituloLogin {
    text-align: center;
    /* Alinea el título al centro */
    width: 100%;
    /* Ajusta el ancho del título */
    margin-left: 0;
    /* Alinea el título al centro */
  }
}

@media (min-width: 769px) {
  .card {
    width: 800px;
    /* Ajusta el ancho de la tarjeta en vista de PC */
    min-height: 600px;
    /* Aumenta la altura mínima en vista de PC */
    margin-top: 9rem;
    /* Agrega margen superior para posicionar más abajo */
  }


  .card-body {
    width: 70%;
    padding: 4rem;
  }

  .card-body h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .form-control {
    font-size: 1.2rem;
    padding: 1.2rem 0;
  }

  .btn-custom {
    padding: 1.2rem;
    font-size: 1.2rem;
  }
}

/* Animaciones y efectos adicionales */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
}

/* Placeholder text color */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Estilos para el autofill de navegadores */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(17, 24, 39, 0.95) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* =============================
   DARK MODE STYLES
   ============================= */

html.theme-dark .form-floating > .form-control,
html.theme-dark .form-floating > .form-select {
  background-color: #1b2430 !important;
  border: 1.5px solid #2a3548 !important;
  color: #e8eef7 !important;
  border-radius: 6px;
  padding: 1rem 0.75rem !important;
}

html.theme-dark .form-floating > .form-control:focus,
html.theme-dark .form-floating > .form-select:focus {
  background-color: #202b3a !important;
  border: 1.5px solid #667eea !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), inset 0 1px 2px rgba(102, 126, 234, 0.1) !important;
  outline: none;
}

html.theme-dark .form-floating > label {
  color: #c5cfe8 !important;
  font-weight: 500;
  letter-spacing: 0.3px;
}

html.theme-dark .form-floating > .form-control:focus ~ label,
html.theme-dark .form-floating > .form-select:focus ~ label,
html.theme-dark .form-floating > .form-control:not(:placeholder-shown) ~ label,
html.theme-dark .form-floating > .form-select:not(:placeholder-shown) ~ label {
  color: #89b4ff !important;
  opacity: 1;
}

html.theme-dark .form-floating > .form-control:disabled,
html.theme-dark .form-floating > .form-select:disabled {
  background-color: #111722 !important;
  color: #7a8090 !important;
  border: 1.5px solid #1f2432 !important;
  opacity: 1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

html.theme-dark .form-floating > .form-control:disabled ~ label,
html.theme-dark .form-floating > .form-select:disabled ~ label {
  color: #5a6370 !important;
  opacity: 0.6;
  font-weight: 400;
}

