.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 50%, var(--bs-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.35) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: login-pulse 8s ease-in-out infinite;
}

.login-container::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--bs-secondary-rgb), 0.28) 0%, transparent 70%);
  bottom: -160px;
  left: -160px;
  animation: login-pulse 6s ease-in-out infinite;
}

@keyframes login-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

.login-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
  position: relative;
  z-index: 1;
  animation: login-fade-up 0.6s ease-out;
  color: rgba(var(--bs-dark-rgb), 0.85);
}

@keyframes login-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: login-fade 0.8s ease-out 0.2s both;
}

@keyframes login-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo-container img {
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.2));
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.login-title {
  color: rgba(var(--bs-dark-rgb), 0.7);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.login-brand {
  color: rgba(var(--bs-dark-rgb), 0.85);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.form-floating {
  margin-bottom: 1.5rem;
}

.form-floating > .form-control {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
  color: rgba(var(--bs-dark-rgb), 0.9);
  border-radius: 12px;
  padding: 1.625rem 0.75rem 0.625rem;
  height: 58px;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
  background: #ffffff !important;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.2);
  color: rgba(var(--bs-dark-rgb), 0.95);
}

.form-floating > .form-control::placeholder {
  color: transparent;
}

.form-floating > label {
  color: rgba(var(--bs-dark-rgb), 0.55);
  padding: 1rem 0.75rem;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.8;
  color: rgba(var(--bs-dark-rgb), 0.7);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.remember-me-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: var(--bs-primary);
}

.remember-me-container label {
  color: rgba(var(--bs-dark-rgb), 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  border: none;
  border-radius: 12px;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 24px rgba(var(--bs-primary-rgb), 0.3);
  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.25), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--bs-primary-dark) 0%, var(--bs-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(var(--bs-primary-rgb), 0.35);
}

.btn-login:active {
  transform: translateY(0);
}

.alert {
  background: rgba(var(--bs-danger-rgb), 0.15);
  border: 1px solid rgba(var(--bs-danger-rgb), 0.35);
  color: rgba(var(--bs-danger-rgb), 0.9);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.logged-in-message {
  background: rgba(var(--bs-success-rgb), 0.15);
  border: 1px solid rgba(var(--bs-success-rgb), 0.35);
  color: rgba(var(--bs-success-rgb), 0.85);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.logged-in-message a {
  color: var(--bs-danger);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.logged-in-message a:hover {
  color: var(--bs-primary-dark);
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-brand {
    font-size: 1.25rem;
  }
}
