/* ===================
   GLOBAL STYLES
=================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('https://i.pinimg.com/1200x/ef/74/b6/ef74b6b7cc40b3d5ec10613caabcc613.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 80px;
}

/* ===================
   TOP BAR - UNIFORME
=================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo-bar {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-bar:hover {
  transform: scale(1.05);
}

/* ===================
   CONTENEDOR PRINCIPAL
=================== */
.login-wrap {
  width: 100%;
  max-width: 400px;
  min-height: 460px;
  margin: auto;
  position: relative;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 35px;
}

/* ===================
   CONTENEDOR UX
=================== */
.ux-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
}

/* ===================
   LOGO PRINCIPAL
=================== */
.ux-logo {
  width: 180px;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 30px auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ===================
   TABS MEJORADOS
=================== */
.login-html .tab,
.ux-container .tab {
  font-size: 16px;
  margin: 0 12px 20px 0;
  padding: 10px 18px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-html .tab:hover,
.ux-container .tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.login-html .sign-in:checked + .tab,
.login-html .sign-up:checked + .tab,
.ux-container .sign-in:checked + .tab,
.ux-container .sign-up:checked + .tab {
  color: #fff;
  background: #1161ee;
  border-color: #1161ee;
  box-shadow: 0 4px 15px rgba(17, 97, 238, 0.4);
}

/* ===================
   FORMULARIOS
=================== */
.login-form {
  min-height: 320px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.login-form .group {
  margin-bottom: 18px;
  position: relative;
}

/* ===================
   LABELS ESTÁTICOS (ARRIBA DE CAMPOS)
=================== */
.static-label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================
   LABELS FLOTANTES (MANTENER PARA COMPATIBILIDAD)
=================== */
.floating-label {
  position: absolute;
  top: 15px;
  left: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================
   INPUTS MEJORADOS
=================== */
.ux-input,
.floating {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(10px);
  position: relative;
}

.ux-input:focus,
.floating:focus {
  border-color: #1161ee;
  box-shadow: 0 0 0 3px rgba(17, 97, 238, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.ux-input::placeholder,
.floating::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Animación de labels flotantes */
.ux-input:focus + .floating-label,
.ux-input:not(:placeholder-shown) + .floating-label,
.floating:focus + .floating-label,
.floating:not(:placeholder-shown) + .floating-label {
  transform: translateY(-30px) scale(0.85);
  color: #1161ee;
  font-weight: 600;
}

/* ===================
   BOTONES MEJORADOS
=================== */
.ux-btn {
  width: 60%;
  padding: 14px 20px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #1161ee, #0e4bb7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(17, 97, 238, 0.4);
  margin: 8px auto 0 auto;
  display: block; 
}

.ux-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 97, 238, 0.6);
  background: linear-gradient(135deg, #0e4bb7, #0a3d96);
}

.ux-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(17, 97, 238, 0.3);
}

/* ===================
   CHECKBOX MEJORADO
=================== */
.login-form .group .check,
.ux-container .group .check {
  display: none;
}

.login-form .group label[for="check"],
.ux-container .group label[for="check"] {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-form .group label .icon,
.ux-container .group label .icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 8px;
  transition: all 0.3s ease;
}

.login-form .group label .icon:before,
.login-form .group label .icon:after,
.ux-container .group label .icon:before,
.ux-container .group label .icon:after {
  content: '';
  position: absolute;
  background: #fff;
  transition: all 0.3s ease;
}

.login-form .group label .icon:before,
.ux-container .group label .icon:before {
  width: 5px;
  height: 2px;
  left: 2px;
  bottom: 6px;
  transform: scale(0) rotate(45deg);
}

.login-form .group label .icon:after,
.ux-container .group label .icon:after {
  width: 8px;
  height: 2px;
  right: 2px;
  top: 6px;
  transform: scale(0) rotate(-45deg);
}

.login-form .group .check:checked + label .icon,
.ux-container .group .check:checked + label .icon {
  background: #1161ee;
  border-color: #1161ee;
}

.login-form .group .check:checked + label .icon:before,
.ux-container .group .check:checked + label .icon:before {
  transform: scale(1) rotate(45deg);
}

.login-form .group .check:checked + label .icon:after,
.ux-container .group .check:checked + label .icon:after {
  transform: scale(1) rotate(-45deg);
}

/* ===================
   TRANSICIONES DE PESTAÑAS
=================== */
.login-html .sign-in-htm,
.login-html .sign-up-htm,
.ux-container .sign-in-htm,
.ux-container .sign-up-htm {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: all 0.4s ease;
}

.login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm,
.login-html .sign-up:checked + .tab + .login-form .sign-up-htm,
.ux-container .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm,
.ux-container .sign-up:checked + .tab + .login-form .sign-up-htm {
  transform: rotateY(0);
}

/* ===================
   ELEMENTOS DECORATIVOS
=================== */
.hr {
  height: 1px;
  margin: 25px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ===================
   ENLACES MEJORADOS
=================== */
.foot-lnk {
  text-align: center;
  margin-top: 15px;
}

.ux-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.ux-link:hover {
  color: #1161ee;
  transform: translateY(-1px);
}

/* ===================
   ALERTAS MEJORADAS
=================== */
.alert {
  padding: 12px 18px;
  margin: 18px 0;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.3);
}

.alert-error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.3);
}

/* ===================
   FORMULARIO DE RECUPERACIÓN
=================== */
.ux-recovery-form {
  position: relative;
  min-height: 280px;
}

.ux-recovery-form .group {
  margin-bottom: 20px;
  position: relative;
}

.ux-recovery-form .floating-label {
  position: absolute;
  top: 15px;
  left: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ux-recovery-form .ux-input:focus + .floating-label,
.ux-recovery-form .ux-input:not(:placeholder-shown) + .floating-label {
  transform: translateY(-30px) scale(0.85);
  color: #1161ee;
  font-weight: 600;
}

/* ===================
   SWEETALERT2 PERSONALIZADO
=================== */
.swal2-popup {
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
}

.swal2-title {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 600 !important;
}

.swal2-content {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 400 !important;
}

/* ===================
   RESPONSIVE DESIGN
=================== */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .top-bar {
    height: 70px;
    padding: 0 16px;
  }
  
  .logo-bar {
    height: 45px;
  }
  
  .login-wrap {
    max-width: 90%;
    margin: 20px auto;
    padding: 30px;
    min-height: auto;
  }
  
  .ux-logo {
    width: 160px;
  }
  
  .login-html .tab,
  .ux-container .tab {
    font-size: 14px;
    margin: 0 8px 18px 0;
    padding: 8px 14px;
  }
  
  .ux-input,
  .floating {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .ux-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-wrap {
    padding: 25px;
  }
  
  .ux-logo {
    width: 140px;
  }
  
  .login-html .tab,
  .ux-container .tab {
    font-size: 13px;
    padding: 7px 12px;
  }
  
  .ux-input,
  .floating {
    padding: 11px 15px;
  }
  
  .ux-btn {
    padding: 11px 16px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(26, 26, 26, 0.98);
  margin: 5% auto;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 500px;
}