/* StokTakip PRO — login page motion & blueprint layers */

:root {
  --ink: #0b1220;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.35);
  --blue-glow: rgba(56, 189, 248, 0.45);
  --grid: rgba(56, 189, 248, 0.08);
}

.font-redifine {
  font-family: "Redifine Font Family", "Inter", "Segoe UI", sans-serif;
}

/* ─── Facade / CAD photo background ───────────────────────────────────── */

@keyframes kenburns {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-0.6%, -0.4%, 0);
  }
}

.login-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-image: url("../img/login-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform-origin: center center;
  animation: none;
  will-change: transform;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(56, 189, 248, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 46%, #000 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 46%, #000 22%, transparent 72%);
  pointer-events: none;
}

.login-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
      ellipse 92% 82% at 50% 44%,
      rgba(11, 18, 32, 0.22) 0%,
      rgba(11, 18, 32, 0.58) 52%,
      rgba(11, 18, 32, 0.9) 100%
    ),
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0) 24%,
      rgba(255, 255, 255, 0.14) 36%,
      rgba(255, 255, 255, 0.34) 45%,
      rgba(255, 255, 255, 0.16) 54%,
      rgba(255, 255, 255, 0) 66%
    ),
    radial-gradient(ellipse 120% 95% at 50% 118%, rgba(11, 18, 32, 0.55) 0%, transparent 42%),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.42) 0%, transparent 32%, rgba(11, 18, 32, 0.52) 100%);
}

.login-glass-card {
  position: relative;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo-no-black {
  /* Removes dark background from PNG on dark card */
  mix-blend-mode: screen;
  filter: contrast(1.08) brightness(1.1);
}

@keyframes neon-edge {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 25px 80px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 52px rgba(34, 211, 238, 0.06);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.18), 0 28px 90px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 78px rgba(34, 211, 238, 0.15);
  }
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-2%, -1.5%, 0) rotate(0.3deg);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 2%, 0) scale(1.02);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 12px var(--cyan-dim));
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 22px var(--blue-glow));
  }
}

@keyframes grid-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(40px, 40px, 0);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.bg-layer {
  animation: drift-a 38s ease-in-out infinite alternate;
}

.bg-layer-slow {
  animation: drift-b 52s ease-in-out infinite alternate;
}

.blueprint-svg {
  animation: pulse-glow 14s ease-in-out infinite;
}

.grid-motion {
  animation: none;
}

.page-enter {
  animation: none;
}

.card-enter {
  animation: none;
}

/* Floating labels */
.field-group {
  position: relative;
}

.remember-row {
  margin-top: -0.15rem;
}

.remember-row label {
  user-select: none;
}

.field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #93c5fd;
  opacity: 0.9;
  pointer-events: none;
}

.field-input {
  width: 100%;
  padding: 1.15rem 1rem 0.55rem 2.65rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field-input::placeholder {
  color: transparent;
}

.field-label {
  position: absolute;
  left: 2.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.2s ease;
}

.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label {
  top: 0.55rem;
  transform: translateY(0);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #67e8f9;
}

.field-input:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 28px rgba(34, 211, 238, 0.15);
  background: rgba(15, 23, 42, 0.85);
}

/* Error state */
.field-input.field-error {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35), 0 0 24px rgba(248, 113, 113, 0.18);
}

.btn-glow {
  /* Logo ile uyumlu: camgöbeği-mint → zümrüt yeşili geçişi */
  background: linear-gradient(118deg, #0d9488 0%, #14b8a6 28%, #10b981 58%, #22c55e 100%);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, background 0.25s ease;
}

.btn-glow:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(118deg, #2dd4bf 0%, #5eead4 35%, #6ee7b7 70%, #bbf7d0 100%);
  box-shadow: 0 12px 36px rgba(20, 184, 166, 0.38), 0 0 44px rgba(52, 211, 153, 0.28);
  filter: brightness(1.04);
}

.btn-glow:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.btn-glow:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%);
  pointer-events: none;
  opacity: 0.35;
  animation: none;
  display: none;
}

@keyframes particle-drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.15;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0);
    opacity: 0.12;
  }
}

.shadow-neon {
  /* Initial frame; neon-edge animation overrides rhythmically */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 25px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 52px rgba(34, 211, 238, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .login-bg-photo {
    animation: none;
    inset: 0;
  }

  .grid-motion {
    animation: none !important;
  }

  .page-enter,
  .card-enter {
    animation: none !important;
  }

  .login-glass-card {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 22px 70px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 40px rgba(34, 211, 238, 0.08);
  }

  .particle {
    animation: none !important;
    opacity: 0.12 !important;
  }
}
