/**
 * Sortio - Login con fondo dinámico tipo juegos (replicado desde 2.backupx, tema juego).
 */
.login-page-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.login-page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: brightness(0.75) saturate(1.1) contrast(1.05);
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.login-page-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(79, 70, 229, 0.4) 50%, rgba(124, 58, 237, 0.5) 100%);
  z-index: 1;
}

.login-page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.login-page-card-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
}

.login-page-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  padding: 2rem 1.5rem;
  animation: loginPageSlideUp 0.5s ease-out;
}

.login-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

@keyframes loginPageSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-page-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: loginPageSpin 0.8s linear infinite;
}

@keyframes loginPageSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .login-page-card-wrapper { padding: 1rem; }
  .login-page-card { padding: 1.5rem 1.25rem; }
}
