:root {
  --brand-blue: #007bff;
  --brand-blue-light: #9dcfff;
  /* glow color */
  --brand-text: #0f2437;
}

body {
  background: #f8f9fa;
}

.login-container {
  max-width: 400px;
  margin: 100px auto 0;
  padding: 30px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* 👉 keyframes OUTSIDE media query */
@keyframes cornerPulse {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }

  100% {
    opacity: 0.35;
    transform: scale(1);
  }
}

/* Top-right blue glow */
.login-container::before {
  content: "";
  position: absolute;
  top: -56px;
  right: -56px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle at 35% 35%,
    var(--brand-blue-light) 0%,
    transparent 70%
  );
  filter: blur(4px);
  opacity: 0.45;
  animation: cornerPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 0;
}

/* Only the enter transition is motion-gated */
@media (prefers-reduced-motion: no-preference) {
  .login-container {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease;
  }

  .login-container.is-visible {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-text);
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 10px;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--brand-text);
}

.form-control {
  border-radius: 6px;
  border: 1px solid #d9e1ea;
  position: relative;
  z-index: 1;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.16);
  background: #0069d9;
}

.forgot-password-link {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.forgot-password-link a {
  color: var(--brand-blue);
  text-decoration: none;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}
