/* Konfourt login — digital / brand atmosphere */
:root {
  --kf-navy: #2E3840;
  --kf-navy-deep: #1a2228;
  --kf-lime: #E0FF55;
  --kf-lime-soft: rgba(224, 255, 85, 0.18);
  --kf-cyan: #6ee7d8;
  --kf-glass: rgba(255, 255, 255, 0.06);
  --kf-glass-border: rgba(224, 255, 85, 0.22);
  --kf-text: #f4f7f5;
  --kf-muted: #9aa5ad;
  --kf-danger: #ff7b7b;
  --kf-ok: #b8f06a;
}

*,
*::before,
*::after { box-sizing: border-box; }

.kf-login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--kf-text);
  background: var(--kf-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-x: hidden;
  position: relative;
}

/* —— Atmosphere —— */
.kf-login-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(224, 255, 85, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(110, 231, 216, 0.12), transparent 45%),
    linear-gradient(160deg, #141a1f 0%, #2E3840 48%, #1a2228 100%);
}

.kf-login-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(224, 255, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 255, 85, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(58deg) scale(1.4);
  transform-origin: center 20%;
  animation: kf-grid-drift 28s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}

@keyframes kf-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}

.kf-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: kf-orb-float 12s ease-in-out infinite;
}

.kf-login-orb--a {
  width: 340px;
  height: 340px;
  background: var(--kf-lime);
  top: -80px;
  right: -60px;
  opacity: 0.18;
}

.kf-login-orb--b {
  width: 280px;
  height: 280px;
  background: var(--kf-cyan);
  bottom: 5%;
  left: -100px;
  opacity: 0.16;
  animation-delay: -4s;
}

.kf-login-orb--c {
  width: 180px;
  height: 180px;
  background: #8fd4ff;
  top: 42%;
  right: 18%;
  opacity: 0.1;
  animation-delay: -7s;
}

@keyframes kf-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.08); }
}

.kf-login-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(224, 255, 85, 0.06),
    transparent
  );
  animation: kf-scan 7s ease-in-out infinite;
}

@keyframes kf-scan {
  0% { top: -10%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

.kf-login-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--kf-lime);
  opacity: 0.35;
  animation: kf-particle 9s linear infinite;
}

.kf-login-particles span:nth-child(1) { left: 12%; top: 70%; animation-delay: 0s; }
.kf-login-particles span:nth-child(2) { left: 28%; top: 80%; animation-delay: -1.2s; width: 2px; height: 2px; }
.kf-login-particles span:nth-child(3) { left: 45%; top: 65%; animation-delay: -2.4s; }
.kf-login-particles span:nth-child(4) { left: 62%; top: 78%; animation-delay: -3.1s; width: 4px; height: 4px; }
.kf-login-particles span:nth-child(5) { left: 78%; top: 72%; animation-delay: -4.5s; }
.kf-login-particles span:nth-child(6) { left: 18%; top: 40%; animation-delay: -0.8s; opacity: 0.2; }
.kf-login-particles span:nth-child(7) { left: 55%; top: 30%; animation-delay: -5s; }
.kf-login-particles span:nth-child(8) { left: 88%; top: 48%; animation-delay: -2s; }
.kf-login-particles span:nth-child(9) { left: 35%; top: 55%; animation-delay: -6.2s; }
.kf-login-particles span:nth-child(10) { left: 70%; top: 38%; animation-delay: -3.8s; width: 2px; height: 2px; }

@keyframes kf-particle {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.45; }
  100% { transform: translateY(-55vh) scale(0.4); opacity: 0; }
}

/* —— Shell / card —— */
.kf-login-shell {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: kf-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kf-card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kf-login-card {
  background: linear-gradient(165deg, rgba(46, 56, 64, 0.92) 0%, rgba(26, 34, 40, 0.95) 100%);
  border: 1px solid var(--kf-glass-border);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(224, 255, 85, 0.06);
  position: relative;
  overflow: hidden;
}

.kf-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kf-lime), transparent);
  opacity: 0.7;
}

.kf-login-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.kf-login-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(224, 255, 85, 0.25));
  animation: kf-logo-pulse 4s ease-in-out infinite;
}

@keyframes kf-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(224, 255, 85, 0.2)); }
  50% { filter: drop-shadow(0 0 22px rgba(224, 255, 85, 0.45)); }
}

.kf-login-brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin: 0.85rem 0 0.25rem;
  color: #fff;
  line-height: 1;
}

.kf-login-brand-name span {
  color: var(--kf-lime);
}

.kf-login-slogan {
  color: var(--kf-muted);
  font-size: 0.88rem;
  margin: 0;
  font-weight: 500;
}

.kf-login-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.28rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.kf-login-sub {
  color: var(--kf-muted);
  font-size: 0.9rem;
  margin: 0 0 1.35rem;
  line-height: 1.45;
}

/* —— Fields —— */
.kf-login-field {
  margin-bottom: 1rem;
}

.kf-login-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kf-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kf-login-label svg {
  width: 14px;
  height: 14px;
  stroke: var(--kf-lime);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.kf-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kf-login-input-wrap > svg.kf-login-field-icon {
  position: absolute;
  left: 0.9rem;
  width: 18px;
  height: 18px;
  stroke: var(--kf-muted);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.2s;
}

.kf-login-input-wrap:focus-within > svg.kf-login-field-icon {
  stroke: var(--kf-lime);
}

.kf-login-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-radius: 12px;
  padding: 0.78rem 2.75rem 0.78rem 2.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.kf-login-input::placeholder {
  color: rgba(154, 165, 173, 0.65);
}

.kf-login-input:focus {
  border-color: rgba(224, 255, 85, 0.55);
  box-shadow: 0 0 0 3px var(--kf-lime-soft);
  background: rgba(0, 0, 0, 0.38);
}

.kf-login-toggle-pass {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--kf-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.kf-login-toggle-pass:hover {
  color: var(--kf-lime);
  background: rgba(224, 255, 85, 0.08);
}

.kf-login-toggle-pass svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kf-login-toggle-pass .icon-eye-off { display: none; }
.kf-login-toggle-pass.is-visible .icon-eye { display: none; }
.kf-login-toggle-pass.is-visible .icon-eye-off { display: block; }

.kf-login-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--kf-muted);
  user-select: none;
}

.kf-login-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--kf-lime);
  cursor: pointer;
}

.kf-login-check label {
  cursor: pointer;
  margin: 0;
}

.kf-login-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  background: var(--kf-lime);
  color: var(--kf-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 8px 28px rgba(224, 255, 85, 0.28);
}

.kf-login-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kf-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 255, 85, 0.4);
  filter: brightness(1.05);
}

.kf-login-submit:active {
  transform: translateY(0);
}

.kf-login-footer-link {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  color: var(--kf-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.kf-login-footer-link:hover {
  color: var(--kf-lime);
}

.kf-login-alert {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.kf-login-alert--ok {
  background: rgba(184, 240, 106, 0.12);
  border-color: rgba(184, 240, 106, 0.35);
  color: var(--kf-ok);
}

.kf-login-alert--err {
  background: rgba(255, 123, 123, 0.12);
  border-color: rgba(255, 123, 123, 0.35);
  color: var(--kf-danger);
}

.kf-login-validation {
  color: var(--kf-danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

.text-danger {
  color: var(--kf-danger) !important;
}

@media (max-width: 480px) {
  .kf-login-card { padding: 1.6rem 1.25rem 1.4rem; border-radius: 16px; }
  .kf-login-brand-name { font-size: 1.55rem; }
}
