:root {
  --color-primary: #1e40af;
  --color-secondary: #3b82f6;
  --color-accent: #60a5fa;
  --color-light: #f0f4f8;
  --color-dark: #1a1a1a;
  --color-muted: #666666;
  --color-gray: #f8fafc;
  --color-border: #cbd5e1;
  --bg-main: #f0f4f8;
  --bg-gradient: linear-gradient(135deg, #f0f4f8, #dbeafe);
  --bubble-color-1: rgba(30, 64, 175, 0.15);
  --bubble-color-2: rgba(59, 130, 246, 0.2);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  margin: 0;
}

.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  pointer-events: none;
}

.bubbles li {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: bubbleRise 15s linear infinite;
  bottom: -100px;
  opacity: 0.6;
  background: var(--bubble-color-1);
}

.bubbles li:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 15s;
}

.bubbles li:nth-child(2) {
  left: 20%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubbles li:nth-child(3) {
  left: 25%;
  width: 60px;
  height: 60px;
  animation-delay: 4s;
  animation-duration: 18s;
  background: rgba(59, 130, 246, 0.18);
}

.bubbles li:nth-child(4) {
  left: 40%;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
  animation-duration: 25s;
  background: rgba(96, 165, 250, 0.2);
}

.bubbles li:nth-child(5) {
  left: 50%;
  width: 70px;
  height: 70px;
  animation-delay: 6s;
  animation-duration: 15s;
  background: rgba(30, 64, 175, 0.16);
}

.bubbles li:nth-child(6) {
  left: 65%;
  width: 35px;
  height: 35px;
  animation-delay: 3s;
  animation-duration: 28s;
  background: rgba(59, 130, 246, 0.2);
}

.bubbles li:nth-child(7) {
  left: 75%;
  width: 50px;
  height: 50px;
  animation-delay: 8s;
  animation-duration: 20s;
  background: rgba(96, 165, 250, 0.18);
}

.bubbles li:nth-child(8) {
  left: 85%;
  width: 25px;
  height: 25px;
  animation-delay: 5s;
  animation-duration: 24s;
  background: rgba(30, 64, 175, 0.18);
}

.bubbles li:nth-child(9) {
  left: 90%;
  width: 45px;
  height: 45px;
  animation-delay: 1s;
  animation-duration: 19s;
  background: rgba(59, 130, 246, 0.16);
}

.bubbles li:nth-child(10) {
  left: 95%;
  width: 30px;
  height: 30px;
  animation-delay: 7s;
  animation-duration: 26s;
  background: var(--bubble-color-2);
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: translateY(-1000px) scale(1.2);
    opacity: 0;
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  position: relative;
  padding: 2rem;
}

/* Tarjeta de login */
.login-card {
  background: var(--color-light);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.15);
  backdrop-filter: blur(12px);
  animation: slideInUp 0.6s ease-out;
  z-index: 1;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle,
      var(--color-primary),
      var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.25);
  animation: logoFloat 3s ease-in-out infinite;
}

.login-title {
  color: var(--color-dark);
  font-size: 1.8rem;
  font-weight: 600;
}

.login-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-label i {
  margin-right: 0.5rem;
  color: var(--color-accent);
}

.eye {
  border: 2px solid var(--color-border);
  border-radius: 10px;
}

.form-control {
  background-color: var(--color-gray);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: var(--color-dark);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-control:hover {
  background-color: var(--color-light);
  border-color: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 0 10px rgba(30, 64, 175, 0.25);
}

.form-control::placeholder {
  color: #999;
}

.btn-login {
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-accent));
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.3);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #dc2626;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
}

body.dark-mode {
  --color-primary: #2563eb;
  --color-secondary: #3b82f6;
  --color-accent: #60a5fa;
  --color-light: #1e293b;
  --color-dark: #ffffff;
  --color-muted: #94a3b8;
  --color-gray: #334155;
  --color-border: #475569;
  --bg-main: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b);
  --bubble-color-1: rgba(59, 130, 246, 0.08);
  --bubble-color-2: rgba(59, 130, 246, 0.12);
}