/* Login — kurumsal 3D ambiyans (saf CSS, GPU) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.login-page {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07090d;
}

.login-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  isolation: isolate;
}

/* —— Arka plan: perspektif zemin + ufuk —— */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-bg-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 18%, rgba(245, 155, 20, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 78% 30%, rgba(56, 189, 248, 0.06), transparent 55%),
    radial-gradient(ellipse 40% 35% at 18% 40%, rgba(229, 9, 20, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0e14 0%, #0c1118 42%, #10151d 100%);
}

.login-bg-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 46%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 155, 20, 0.15) 20%,
    rgba(255, 160, 92, 0.45) 50%,
    rgba(245, 155, 20, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 40px 2px rgba(245, 155, 20, 0.12);
  opacity: 0.85;
}

.login-bg-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 46%;
  bottom: -10%;
  transform-origin: center top;
  transform: perspective(720px) rotateX(58deg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 92%);
  animation: login-floor-drift 28s linear infinite;
  will-change: background-position;
}

.login-bg-floor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 155, 20, 0.08) 0%,
    transparent 30%,
    rgba(7, 9, 13, 0.5) 100%
  );
}

@keyframes login-floor-drift {
  from { background-position: center 0; }
  to { background-position: center 56px; }
}

.login-bg-orbs {
  position: absolute;
  inset: 0;
}

.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: login-orb-float 10s ease-in-out infinite alternate;
}

.login-bg-orb--a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 8%;
  background: rgba(245, 155, 20, 0.18);
}

.login-bg-orb--b {
  width: 220px;
  height: 220px;
  top: 18%;
  right: 6%;
  background: rgba(56, 189, 248, 0.1);
  animation-delay: -3s;
  animation-duration: 12s;
}

.login-bg-orb--c {
  width: 180px;
  height: 180px;
  bottom: 22%;
  left: 42%;
  background: rgba(229, 9, 20, 0.08);
  animation-delay: -6s;
  animation-duration: 14s;
}

@keyframes login-orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

/* —— Kart —— */
.login-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 155, 20, 0.06) inset,
    0 -1px 0 rgba(255, 255, 255, 0.04) inset;
  animation: login-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 22px;
}

/* —— CSS 3D küp —— */
.login-cube-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  height: 72px;
  perspective: 480px;
  perspective-origin: 50% 45%;
}

.login-cube {
  position: relative;
  width: 48px;
  height: 48px;
  transform-style: preserve-3d;
  animation: login-cube-spin 9s linear infinite;
  margin-top: 12px;
  will-change: transform;
}

.login-cube-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 160, 92, 0.35);
  background:
    linear-gradient(145deg, rgba(245, 155, 20, 0.22), rgba(17, 21, 28, 0.85) 55%),
    rgba(17, 21, 28, 0.7);
  box-shadow: inset 0 0 18px rgba(245, 155, 20, 0.12);
  backface-visibility: hidden;
}

.login-cube-face::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.login-cube-face--front  { transform: translateZ(24px); }
.login-cube-face--back   { transform: rotateY(180deg) translateZ(24px); }
.login-cube-face--right  { transform: rotateY(90deg) translateZ(24px); }
.login-cube-face--left   { transform: rotateY(-90deg) translateZ(24px); }
.login-cube-face--top    { transform: rotateX(90deg) translateZ(24px); background: linear-gradient(145deg, rgba(255, 160, 92, 0.28), rgba(17, 21, 28, 0.8)); }
.login-cube-face--bottom { transform: rotateX(-90deg) translateZ(24px); }

.login-cube-glyph {
  font-family: 'Chakra Petch', 'Saira', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 160, 92, 0.95);
  text-shadow: 0 0 12px rgba(245, 155, 20, 0.45);
}

@keyframes login-cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}

.login-brand-mark {
  margin: 0 0 6px;
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(36px, 8vw, 48px);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: #e50914;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 4px 18px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(229, 9, 20, 0.28);
  animation: login-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.login-title {
  margin: 0;
  font-family: 'Chakra Petch', 'Saira', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.login-lead {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes login-brand-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 78, 0.35);
  background: rgba(255, 59, 78, 0.12);
  color: #ff8a96;
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field .field-label {
  margin-bottom: 6px;
}

.login-field .input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(10, 13, 18, 0.65);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.login-foot a {
  color: var(--ember-soft);
  text-decoration: none;
}

.login-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 18px 20px;
  }
  .login-cube-wrap {
    height: 64px;
  }
  .login-cube {
    width: 40px;
    height: 40px;
  }
  .login-cube-face--front  { transform: translateZ(20px); }
  .login-cube-face--back   { transform: rotateY(180deg) translateZ(20px); }
  .login-cube-face--right  { transform: rotateY(90deg) translateZ(20px); }
  .login-cube-face--left   { transform: rotateY(-90deg) translateZ(20px); }
  .login-cube-face--top    { transform: rotateX(90deg) translateZ(20px); }
  .login-cube-face--bottom { transform: rotateX(-90deg) translateZ(20px); }
}

/* Azaltılmış hareket / düşük güç */
@media (prefers-reduced-motion: reduce) {
  .login-cube,
  .login-bg-floor,
  .login-bg-orb {
    animation: none !important;
  }
  .login-cube {
    transform: rotateX(-18deg) rotateY(32deg);
  }
}

@media (max-width: 720px) {
  .login-bg-orb--c {
    display: none;
  }
}
