/* Login stage — single composition, charcoal + lime brand */

.kf-login {
  min-height: 100vh;
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: #f4f6f7;
  background: #161c22;
  overflow-x: hidden;
}

.kf-login-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(224, 255, 85, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(46, 56, 64, 0.9), transparent 50%),
    linear-gradient(165deg, #0f1419 0%, #1a222b 45%, #12181e 100%);
}

.kf-login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.kf-login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 255, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 255, 85, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 55% 45%, #000 20%, transparent 75%);
  animation: kf-grid-drift 28s linear infinite;
}

.kf-login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.kf-login-glow-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 8%;
  right: 8%;
  background: rgba(224, 255, 85, 0.18);
  animation: kf-pulse 9s ease-in-out infinite;
}

.kf-login-glow-b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 5%;
  left: 10%;
  background: rgba(80, 110, 140, 0.25);
  animation: kf-pulse 11s ease-in-out infinite reverse;
}

@keyframes kf-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

@keyframes kf-pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.12); opacity: 0.55; }
}

.kf-login-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.kf-login-panel {
  width: 100%;
  max-width: 440px;
  animation: kf-rise 0.7s ease-out both;
}

@keyframes kf-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.kf-login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.kf-login-brand img {
  width: min(100%, 280px);
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.kf-login-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(224, 255, 85, 0.85);
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}

.kf-login-card {
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 576px) {
  .kf-login-card {
    padding: 2.25rem 2rem 2.35rem;
  }
}

.kf-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.kf-login-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
}

.kf-login-form .form-label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.9rem;
}

.kf-login-input {
  background: rgba(15, 20, 25, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-radius: 0.65rem !important;
}

.kf-login-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.kf-login-input:focus {
  border-color: rgba(224, 255, 85, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(224, 255, 85, 0.18) !important;
  background: rgba(15, 20, 25, 0.72) !important;
}

.kf-password-group .kf-login-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.kf-password-toggle {
  background: rgba(15, 20, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  color: rgba(255, 255, 255, 0.75);
  border-top-right-radius: 0.65rem;
  border-bottom-right-radius: 0.65rem;
  padding-inline: 0.9rem;
}

.kf-password-toggle:hover,
.kf-password-toggle:focus {
  background: rgba(224, 255, 85, 0.12);
  color: #e0ff55;
  border-color: rgba(224, 255, 85, 0.35);
}

.kf-login .form-check-label {
  color: rgba(255, 255, 255, 0.7);
}

.kf-login .form-check-input {
  background-color: rgba(15, 20, 25, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
}

.kf-login .form-check-input:checked {
  background-color: #e0ff55;
  border-color: #e0ff55;
}

.kf-login-submit {
  background: #e0ff55;
  border-color: #e0ff55;
  color: #2e3840;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 0.75rem;
  padding-block: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kf-login-submit:hover,
.kf-login-submit:focus {
  background: #d4f34a;
  border-color: #d4f34a;
  color: #2e3840;
  box-shadow: 0 10px 28px rgba(224, 255, 85, 0.28);
  transform: translateY(-1px);
}

.kf-login .alert {
  border-radius: 0.65rem;
}

.kf-login .text-danger {
  color: #ff8a8a !important;
}

@media (prefers-reduced-motion: reduce) {
  .kf-login-grid,
  .kf-login-glow,
  .kf-login-panel {
    animation: none !important;
  }
}
