/* ========================================
   AUTH.CSS - Estilos para Autenticación
   ======================================== */

/* Reset para páginas de autenticación - Cuando NO hay app-container */
body:not(.app-container) {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-family-primary) !important;
  background: #FFFFFF !important;
  height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Ocultar elementos del sidebar SOLO en páginas de autenticación (cuando NO hay app-container) */
body:not(.app-container) .sidebar,
body:not(.app-container) .mobile-menu-btn,
body:not(.app-container) .sidebar-toggle-float {
  display: none !important;
}

/* Asegurar que el sidebar sea visible cuando SÍ hay app-container */
body.app-container .sidebar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.app-container .mobile-menu-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.app-container .sidebar-toggle-float {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Forzar visibilidad del sidebar con máxima especificidad */
.app-container .sidebar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: var(--sidebar-width) !important;
  height: 100vh !important;
}

/* CSS de emergencia para forzar sidebar visible */
#sidebar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: 280px !important;
  height: 100vh !important;
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Permitir que el sidebar se oculte/muestre normalmente */
#sidebar.hidden {
  display: none !important;
}

#sidebar.collapsed {
  display: block !important;
  width: var(--sidebar-collapsed-width) !important;
}

.app-container .mobile-menu-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.app-container .sidebar-toggle-float {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Main content para autenticación */
body:not(.app-container) .main-content {
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  background: #FFFFFF !important;
}

/* ========================================
   LOGIN WRAPPER
   ======================================== */
.login-wrapper {
  width: 100% !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: #FFFFFF !important;
  padding: 20px !important;
  position: relative !important;
  z-index: 1000 !important;
}

/* ========================================
   CONTAINER DE AUTENTICACIÓN
   ======================================== */
.login-card,
.container-register {
  position: relative !important;
  width: 960px !important;
  max-width: 100% !important;
  height: 580px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 20px !important;
  transition: all 0.3s ease !important;
}

/* Clase unificada para transición suave */
.auth-card {
  position: relative !important;
  width: 960px !important;
  max-width: 100% !important;
  height: 580px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 20px !important;
  transition: all 0.3s ease !important;
}

/* ========================================
   PANEL IZQUIERDO (AZUL)
   ======================================== */
.login-left {
  background-color: var(--primary-color) !important;
  color: white !important;
  flex: 1 !important;
  padding: 60px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 30px !important;
  min-height: 100% !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  /* Transición suave para cambios de contenido */
  transition: all 0.3s ease !important;
}

.login-left h2 {
  font-family: var(--font-family-primary) !important;
  font-size: var(--font-size-2xl) !important;
  font-weight: var(--font-weight-bold) !important;
  margin-bottom: var(--spacing-sm) !important;
  white-space: nowrap !important;
  color: var(--text-white) !important;
  line-height: 1.3 !important;
  transition: all 0.3s ease !important;
}

.login-left p {
  font-family: var(--font-family-secondary) !important;
  font-size: var(--font-size-base) !important;
  font-weight: var(--font-weight-normal) !important;
  margin-bottom: var(--spacing-lg) !important;
  opacity: 0.9 !important;
  color: var(--text-white) !important;
  line-height: 1.6 !important;
  transition: all 0.3s ease !important;
}

/* ========================================
   PANEL DERECHO (BLANCO)
   ======================================== */
.login-right {
  flex: 1 !important;
  padding: 40px 50px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100% !important;
  text-align: center !important;
  background-color: white !important;
  width: 100% !important;
  border-radius: 30px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  height: 100% !important;
  /* Transición suave para cambios de contenido */
  transition: all 0.3s ease !important;
}

/* ========================================
   PANEL DERECHO COMO AZUL (PARA REGISTRO)
   ======================================== */
.login-right.blue-panel {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-radius: 30px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   PANEL IZQUIERDO COMO BLANCO (PARA REGISTRO)
   ======================================== */
.login-left.white-panel {
  background-color: white !important;
  color: var(--text-color) !important;
  border-radius: 30px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   PANEL IZQUIERDO COMO AZUL (PARA LOGIN)
   ======================================== */
.login-left.blue-panel {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-radius: 30px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   PANEL DERECHO COMO BLANCO (PARA LOGIN)
   ======================================== */
.login-right.white-panel {
  background-color: white !important;
  color: var(--text-color) !important;
  border-radius: 30px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   FORMULARIOS
   ======================================== */
.login-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
}

.login-title {
  font-family: var(--font-family-primary) !important;
  font-size: var(--font-size-3xl) !important;
  font-weight: var(--font-weight-semibold) !important;
  color: var(--text-primary) !important;
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  line-height: 1.3 !important;
  text-align: center !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-register {
  font-family: var(--font-family-primary) !important;
  font-size: var(--font-size-base) !important;
  font-weight: var(--font-weight-medium) !important;
  background: transparent !important;
  border: 2px solid var(--text-white) !important;
  color: var(--text-white) !important;
  padding: var(--spacing-sm) var(--spacing-xl) !important;
  border-radius: var(--border-radius-full) !important;
  cursor: pointer !important;
  transition: var(--transition-normal) !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1.5 !important;
}

.btn-register:hover {
  background: white !important;
  color: #228be6 !important;
  transform: translateY(-2px) !important;
}

.btn-login-primary {
  width: 100% !important;
  background: #228be6 !important;
  border: none !important;
  color: white !important;
  padding: 15px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: 20px !important;
  margin-bottom: 15px !important;
}

.btn-login-primary:hover {
  background: #1c7ed6 !important;
  transform: translateY(-2px) !important;
}

/* ========================================
   INPUTS
   ======================================== */
.input-group {
  position: relative !important;
  margin-bottom: 15px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.input-icon-group {
  display: flex !important;
  align-items: center !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  background: white !important;
  transition: all 0.3s ease !important;
  min-height: 50px !important;
  overflow: hidden !important;
}

.input-icon-group:hover {
  border-color: #9E9E9E !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.input-icon-group:focus-within {
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
  transition: all 0.3s ease !important;
}

.input-icon {
  padding: 0 0 0 18px !important;
  color: #6c757d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
}

.input-icon i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

/* Estilos para los íconos */
.icon-user::before {
  content: "👤" !important;
  font-size: 18px !important;
  color: #6c757d !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.icon-lock::before {
  content: "🔒" !important;
  font-size: 18px !important;
  color: #6c757d !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.icon-email::before {
  content: "✉️" !important;
  font-size: 18px !important;
  color: #6c757d !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.form-control {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  padding: 15px 18px 15px 8px !important;
  font-size: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-color) !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

.form-control:hover {
  border: none !important;
  box-shadow: none !important;
}

.form-control:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--text-color) !important;
}

.form-control::placeholder {
  color: #6c757d !important;
}

/* Estilos para inputs con valor */
.form-control:not(:placeholder-shown) {
  background: transparent !important;
  color: var(--text-color) !important;
}

/* Asegurar que el input mantenga su apariencia correcta */
.input-icon-group .form-control {
  background: transparent !important;
  color: var(--text-color) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.input-icon-group .form-control:hover {
  border: none !important;
  box-shadow: none !important;
}

.input-icon-group .form-control:focus {
  background: transparent !important;
  color: var(--text-color) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Asegurar consistencia entre todos los campos */
.input-group.input-icon-group {
  background: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.input-group.input-icon-group:hover {
  border-color: #9E9E9E !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.input-group.input-icon-group:focus-within {
  background: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

/* Estilos específicos para el campo de contraseña - igual que email */
input[type="password"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

input[type="password"]:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

input[type="password"]:hover {
  border: none !important;
  box-shadow: none !important;
}

input[type="password"]:not(:placeholder-shown) {
  background: transparent !important;
  border: none !important;
}

/* Estilos específicos para el campo de contraseña con ID */
#contrasena {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

#contrasena:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
  outline: none !important;
  box-shadow: none !important;
}

#contrasena:hover {
  border: none !important;
  box-shadow: none !important;
}

#contrasena:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

/* Asegurar que el contenedor del campo de contraseña tenga fondo blanco */
.input-group.input-icon-group:has(input[type="password"]) {
  background: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.input-group.input-icon-group:has(input[type="password"]):focus-within {
  background: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

.input-group.input-icon-group:has(input[type="password"]):hover {
  border-color: #9E9E9E !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Estilos de máxima especificidad para el campo de contraseña */
body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#contrasena) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#contrasena):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#contrasena) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#contrasena):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

/* Estilos específicos para el input de contraseña con máxima especificidad */
body .login-wrapper .container-register .login-right .login-form input[type="password"]#contrasena {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-right .login-form input[type="password"]#contrasena:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

body .login-wrapper .container-register .login-right .login-form input[type="password"]#contrasena:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

/* Sobrescribir estilos de form-inputs-fix.css para campos de contraseña en login */
.login-form input[type="password"],
.login-form input[type="password"]:hover,
.login-form input[type="password"]:focus {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.input-icon-group input[type="password"],
.input-icon-group input[type="password"]:hover,
.input-icon-group input[type="password"]:focus {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ========================================
   ESTILOS PARA FORMULARIO DE REGISTRO
   ======================================== */

/* Estilos para campo de texto (nombre) en registro */
input[type="text"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

input[type="text"]:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

input[type="text"]:hover {
  border: none !important;
  box-shadow: none !important;
}

input[type="text"]:not(:placeholder-shown) {
  background: transparent !important;
  border: none !important;
}

/* Estilos específicos para el campo de nombre */
#nombre {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

#nombre:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
  outline: none !important;
  box-shadow: none !important;
}

#nombre:hover {
  border: none !important;
  box-shadow: none !important;
}

#nombre:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

/* Asegurar que el contenedor del campo de nombre tenga fondo blanco */
.input-group.input-icon-group:has(input[type="text"]) {
  background: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.input-group.input-icon-group:has(input[type="text"]):focus-within {
  background: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

.input-group.input-icon-group:has(input[type="text"]):hover {
  border-color: #9E9E9E !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Estilos específicos para el campo de nombre con máxima especificidad */
body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#nombre) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#nombre):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#nombre) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#nombre):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="text"]#nombre {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="text"]#nombre:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Estilos para campo de email en registro (aplicar también al panel izquierdo) */
body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#correo) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#correo):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#correo) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#correo):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="email"]#correo {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="email"]#correo:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Estilos para campo de contraseña en registro (aplicar también al panel izquierdo) */
body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#contrasena) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#contrasena):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#contrasena) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#contrasena):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="password"]#contrasena {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="password"]#contrasena:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Estilos para campo de confirmar contraseña */
#confirmar_contrasena {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

#confirmar_contrasena:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
  outline: none !important;
  box-shadow: none !important;
}

#confirmar_contrasena:hover {
  border: none !important;
  box-shadow: none !important;
}

#confirmar_contrasena:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
}

/* Asegurar que el contenedor del campo de confirmar contraseña tenga fondo blanco */
.input-group.input-icon-group:has(input#confirmar_contrasena) {
  background: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.input-group.input-icon-group:has(input#confirmar_contrasena):focus-within {
  background: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

.input-group.input-icon-group:has(input#confirmar_contrasena):hover {
  border-color: #9E9E9E !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Estilos de máxima especificidad para el campo de confirmar contraseña */
body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#confirmar_contrasena) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#confirmar_contrasena):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#confirmar_contrasena) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form .input-group.input-icon-group:has(input#confirmar_contrasena):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="password"]#confirmar_contrasena {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

body .login-wrapper .container-register .login-left .login-form input[type="password"]#confirmar_contrasena:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Sobrescribir estilos de form-inputs-fix.css para todos los campos en registro */
.login-form input[type="text"],
.login-form input[type="text"]:hover,
.login-form input[type="text"]:focus {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.input-icon-group input[type="text"],
.input-icon-group input[type="text"]:hover,
.input-icon-group input[type="text"]:focus {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Forzar fondo blanco en todos los estados del campo de email */
input[type="email"] {
  background: transparent !important;
}

input[type="email"]:focus {
  background: transparent !important;
}

input[type="email"]:not(:placeholder-shown) {
  background: transparent !important;
}

/* Asegurar que el contenedor del campo de email tenga fondo blanco */
.input-group.input-icon-group:has(input[type="email"]) {
  background: white !important;
}

.input-group.input-icon-group:has(input[type="email"]):focus-within {
  background: white !important;
}

/* Estilos específicos para el campo de email - igual que password */
#correo {
  background: transparent !important;
  color: var(--text-color) !important;
}

#correo:focus {
  background: transparent !important;
  color: var(--text-color) !important;
}

#correo:not(:placeholder-shown) {
  background: transparent !important;
  color: var(--text-color) !important;
}

/* Forzar que el contenedor del email sea idéntico al de password */
.input-group:has(#correo) {
  background: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.input-group:has(#correo):focus-within {
  background: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

/* Forzar fondo blanco en TODOS los estados del campo de email */
.input-group:has(#correo) * {
  background: transparent !important;
}

.input-group:has(#correo) {
  background: white !important;
}

/* Estilos específicos para cuando el campo tiene valor */
#correo:valid {
  background: transparent !important;
}

#correo:invalid {
  background: transparent !important;
}

#correo:required {
  background: transparent !important;
}

/* Asegurar que el contenedor mantenga fondo blanco siempre */
.input-group.input-icon-group:has(input[type="email"]) {
  background: white !important;
}

.input-group.input-icon-group:has(input[type="email"]):focus-within {
  background: white !important;
}

.input-group.input-icon-group:has(input[type="email"]):not(:focus-within) {
  background: white !important;
}

/* Estilos de máxima especificidad para el campo de email */
div.input-group.input-icon-group:has(input#correo) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

div.input-group.input-icon-group:has(input#correo) input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

div.input-group.input-icon-group:has(input#correo):focus-within {
  background: white !important;
  background-color: white !important;
  border: 2px solid #228be6 !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1) !important;
}

div.input-group.input-icon-group:has(input#correo):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

/* Eliminar cualquier estilo que pueda estar causando el fondo celeste */
input[type="email"]#correo {
  background: transparent !important;
  background-color: transparent !important;
}

input[type="email"]#correo:focus {
  background: transparent !important;
  background-color: transparent !important;
}

input[type="email"]#correo:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
}

/* ========================================
   ESTILOS DE MÁXIMA ESPECIFICIDAD PARA EL CAMPO DE EMAIL
   ======================================== */

/* Forzar fondo blanco con máxima especificidad */
body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#correo) {
  background: white !important;
  background-color: white !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#correo):focus-within {
  background: white !important;
  background-color: white !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#correo) input {
  background: transparent !important;
  background-color: transparent !important;
}

body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input#correo):focus-within input {
  background: transparent !important;
  background-color: transparent !important;
}

/* Estilos específicos para el input de email con máxima especificidad */
body .login-wrapper .container-register .login-right .login-form input[type="email"]#correo {
  background: transparent !important;
  background-color: transparent !important;
}

body .login-wrapper .container-register .login-right .login-form input[type="email"]#correo:focus {
  background: transparent !important;
  background-color: transparent !important;
}

body .login-wrapper .container-register .login-right .login-form input[type="email"]#correo:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
}

/* Sobrescribir cualquier estilo de archivos minificados */
.form-control#correo {
  background: transparent !important;
  background-color: transparent !important;
}

.input-group.input-icon-group:has(#correo) {
  background: white !important;
  background-color: white !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* ========================================
   ESTILOS PARA SOBRESCRIBIR AUTORRELLENO DEL NAVEGADOR
   ======================================== */

/* Sobrescribir estilos de autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Para Firefox */
input:-moz-autofill {
  background: transparent !important;
  background-color: transparent !important;
}

/* Estilos específicos para el campo de email con autocompletado */
#correo:-webkit-autofill,
#correo:-webkit-autofill:hover,
#correo:-webkit-autofill:focus,
#correo:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Asegurar que el contenedor mantenga fondo blanco con autocompletado */
.input-group.input-icon-group:has(input:-webkit-autofill) {
  background: white !important;
  background-color: white !important;
}

/* Estilos para cuando el input tiene valor (incluyendo autocompletado) */
input[type="email"]:not(:placeholder-shown),
input[type="email"]:valid,
input[type="email"]:invalid {
  background: transparent !important;
  background-color: transparent !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  box-shadow: 0 0 0 30px white inset !important;
}

/* Estilos adicionales para forzar fondo blanco en autocompletado */
input[type="email"]#correo:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Para navegadores que no soportan -webkit-autofill */
input[type="email"]#correo:autofill {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: 0 0 0 1000px white inset !important;
}

/* Estilos de máxima especificidad para autocompletado */
body .login-wrapper .container-register .login-right .login-form input[type="email"]#correo:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Asegurar que el contenedor sea blanco incluso con autocompletado */
body .login-wrapper .container-register .login-right .login-form .input-group.input-icon-group:has(input:-webkit-autofill) {
  background: white !important;
  background-color: white !important;
}

/* ========================================
   ENLACES
   ======================================== */
.forgot-link {
  color: #228be6 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: color 0.3s ease !important;
}

.forgot-link:hover {
  color: #1c7ed6 !important;
  text-decoration: underline !important;
}

/* ========================================
   SOCIAL LOGIN
   ======================================== */
.social-login {
  margin-top: 10px !important;
  width: 100% !important;
  text-align: center !important;
}

.oauth-text {
  color: #6c757d !important;
  font-size: 14px !important;
  margin-bottom: 15px !important;
}

.oauth-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  margin-top: 20px !important;
}

.btn-social-icon {
  width: 55px !important;
  height: 55px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 2px solid #e1e5e9 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-social-icon::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  border-radius: 50% !important;
}

.btn-social-icon:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
  border-color: #667eea !important;
  background: #f8f9fa !important;
}

.btn-social-icon:hover::before {
  opacity: 0.1 !important;
}

.btn-social-icon:active {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  background: #e9ecef !important;
}

.btn-social-icon img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  position: relative !important;
  z-index: 1 !important;
  transition: transform 0.3s ease !important;
}

.btn-social-icon:hover img {
  transform: scale(1.1) !important;
}

/* Estilos específicos para cada plataforma */
.btn-social-icon[href*="microsoft"]:hover {
  border-color: #0078d4 !important;
  box-shadow: 0 12px 30px rgba(0, 120, 212, 0.3) !important;
}

.btn-social-icon[href*="google"]:hover {
  border-color: #4285f4 !important;
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.3) !important;
}

.btn-social-icon[href*="apple"]:hover {
  border-color: #000000 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Animación de pulso sutil */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

.btn-social-icon:focus {
  outline: none !important;
  animation: pulse 2s infinite !important;
}

/* Asegurar que las animaciones funcionen */
.btn-social-icon * {
  pointer-events: none !important;
}

.btn-social-icon {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}




/* ========================================
   ANIMACIONES DE SWITCH
   ======================================== */

/* Animación: Panel azul se expande llenando todo el div */
.login-left.switch-active {
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 30px !important;
  z-index: 3 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  animation: expandFromLeft 0.8s ease-out forwards !important;
  transition: all 0.8s ease-out !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Ocultar contenido durante la animación */
.login-left.switch-active h2,
.login-left.switch-active p,
.login-left.switch-active .register-wrapper,
.login-left.switch-active .login-form {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.login-right.switch-active {
  flex: 0 !important;
  opacity: 0 !important;
  transform: translateX(100%) !important;
  z-index: 1 !important;
  width: 0 !important;
  transition: all 0.8s ease-out !important;
}

/* Ocultar contenido del panel derecho durante la animación */
.login-right.switch-active h2,
.login-right.switch-active p,
.login-right.switch-active .register-wrapper,
.login-right.switch-active .login-form {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

/* Animación: Panel azul se expande de derecha a izquierda */
.login-left.switch-reverse {
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 30px !important;
  z-index: 3 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  animation: expandFromRight 0.8s ease-out forwards !important;
  transition: all 0.8s ease-out !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Ocultar contenido durante la animación */
.login-left.switch-reverse h2,
.login-left.switch-reverse p,
.login-left.switch-reverse .register-wrapper,
.login-left.switch-reverse .login-form {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.login-right.switch-reverse {
  flex: 0 !important;
  opacity: 0 !important;
  transform: translateX(-100%) !important;
  z-index: 1 !important;
  width: 0 !important;
  transition: all 0.8s ease-out !important;
}

/* Ocultar contenido del panel derecho durante la animación reversa */
.login-right.switch-reverse h2,
.login-right.switch-reverse p,
.login-right.switch-reverse .register-wrapper,
.login-right.switch-reverse .login-form {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

/* Keyframes para animaciones */
@keyframes expandFromLeft {
  0% {
    width: 50%;
    left: 0;
    right: auto;
    border-radius: 30px;
  }
  20% {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 30px;
  }
  80% {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 30px;
  }
  100% {
    width: 50%;
    left: auto;
    right: 0;
    border-radius: 30px;
  }
}

@keyframes expandFromRight {
  0% {
    width: 50%;
    left: auto;
    right: 0;
    border-radius: 30px;
  }
  20% {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 30px;
  }
  80% {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 30px;
  }
  100% {
    width: 50%;
    left: 0;
    right: auto;
    border-radius: 30px;
  }
}

/* ========================================
   POSICIONES ESPECIALES
   ======================================== */
.login-left.right-position {
  border-radius: 30px !important;
}

.login-left.right-position.switch-active {
  border-radius: 30px !important;
  width: 100% !important;
  height: 100% !important;
}

.login-left.right-position.switch-reverse {
  border-radius: 30px !important;
  width: 100% !important;
  height: 100% !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .container-register {
    flex-direction: column !important;
    height: auto !important;
    margin: 20px !important;
    width: calc(100% - 40px) !important;
  }
  
  .login-left,
  .login-right {
    flex: none !important;
    padding: 30px !important;
    min-height: auto !important;
  }
  
  .login-left {
    border-radius: 50px 50px 0 0 !important;
  }
  
  .login-right {
    border-radius: 0 0 50px 50px !important;
  }
  
  .oauth-buttons {
    gap: 15px !important;
    flex-wrap: wrap !important;
  }
  
  .btn-social-icon {
    width: 50px !important;
    height: 50px !important;
  }
  
  .btn-social-icon img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ===== Microsoft 365 institucional (login) ===== */
.institutional-hint {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.btn-microsoft-365 {
  text-decoration: none;
  background: #ffffff;
  color: #2f2f2f;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-microsoft-365:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
  color: #1d4ed8;
}
