/* ── Login Page Styles ──────────────────────────────────────── */

.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(79,110,247,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.05) 0%, transparent 50%),
              var(--bg-base);
}

#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Orbes de fondo */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -200px; left: -200px;
  animation: float1 12s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -150px; right: -150px;
  animation: float2 15s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: #7c3aed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, 20px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, -30px) scale(1.08); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33%       { transform: translate(-55%, -45%) scale(1.1); }
  66%       { transform: translate(-45%, -55%) scale(0.95); }
}

/* Contenedor principal */
.login-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}

/* Logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 20px var(--accent-glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card del formulario */
.login-card {
  width: 100%;
  border-color: var(--border);
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(79,110,247,0.05);
}

.login-header {
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Formulario */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Botón de toggle contraseña */
.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.btn-toggle-pass:hover { color: var(--text-secondary); }
.input-icon-wrap .input[type="password"],
.input-icon-wrap .input[type="text"] {
  padding-right: 44px;
}

/* Error */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--danger-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
  animation: fade-in var(--t-normal) ease;
}

/* Footer */
.login-footer {
  text-align: center;
  animation-delay: 200ms;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 24px 20px; }
  .login-logo { flex-direction: column; text-align: center; }
}
