/* ==========================================================================
   ESYS — Login Screen v2: Fotoğraf arka plan + yüzen pano kartı
   ========================================================================== */

.login-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #05070a;
  display: flex;
  flex-direction: column;
}

/* ── Arka plan fotoğrafı ── */
.login-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
  filter: brightness(.9) saturate(1.1) contrast(1.03);
}
.login-bg::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg, rgba(4,6,9,.5) 0%, rgba(4,6,9,.06) 28%, rgba(4,6,9,.06) 58%, rgba(4,6,9,.62) 100%),
    linear-gradient(180deg, rgba(4,6,9,.55) 0%, transparent 24%, transparent 68%, rgba(4,6,9,.68) 100%);
}

/* Fotoğraftaki gerçek panel ışıkları / tavan armatürleri / AGV ışıklarının üzerine yanıp sönen katman */
.bg-lights { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.bg-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: bg-light-blink 2.4s ease-in-out infinite;
}
.bg-light.green  { background: var(--ind-safe-green);    box-shadow: 0 0 16px 5px rgba(51,209,122,.9); }
.bg-light.red    { background: var(--ind-live-red);       box-shadow: 0 0 14px 4px rgba(255,77,61,.85); }
.bg-light.amber  { background: var(--ind-hazard-yellow);  box-shadow: 0 0 14px 4px rgba(255,207,63,.85); }
.bg-light.blue   { background: var(--ind-arc-blue);       box-shadow: 0 0 18px 6px rgba(63,182,255,.9); }
.bg-light.white  { background: #eef2f6;                    box-shadow: 0 0 20px 6px rgba(238,242,246,.85); }

/* Sol pano üzerindeki gösterge ışıkları — login-bg3.jpg üzerinde ölçülmüş gerçek koordinatlar */
.bg-light.panel-1 { top: 14%;   left: 9%;   width: 6px; height: 6px; animation-delay: 0s; }
.bg-light.panel-2 { top: 17.5%; left: 9%;   width: 8px; height: 8px; animation-delay: .35s; }
.bg-light.panel-3 { top: 38%;   left: 3%;   width: 6px; height: 6px; animation-delay: .7s; }
.bg-light.panel-4 { top: 43%;   left: 3%;   width: 5px; height: 5px; animation-delay: 1.05s; }
.bg-light.panel-5 { top: 48.5%; left: 3%;   width: 5px; height: 5px; animation-delay: 1.4s; }
.bg-light.panel-6 { top: 41%;   left: 27.5%; width: 5px; height: 5px; animation-delay: .5s; }
.bg-light.panel-7 { top: 45%;   left: 44.5%; width: 5px; height: 5px; animation-delay: .9s; }
.bg-light.panel-8 { top: 40%;   left: 86%;   width: 5px; height: 5px; animation-delay: 1.6s; }

/* Ekran/monitör parlaması */
.bg-light.screen { top: 18%; left: 32%; width: 15px; height: 11px; border-radius: 3px; animation-delay: .6s; }

/* Tavan flüoresan armatürleri (perspektifle uzayan sıra) */
.bg-light.tube-1 { top: 3%;  left: 33%; width: 18px; height: 4px; border-radius: 2px; animation-delay: .2s; }
.bg-light.tube-2 { top: 5%;  left: 45%; width: 15px; height: 4px; border-radius: 2px; animation-delay: 1s; }
.bg-light.tube-3 { top: 4%;  left: 62%; width: 14px; height: 4px; border-radius: 2px; animation-delay: 1.5s; }
.bg-light.tube-4 { top: 8%;  left: 68%; width: 12px; height: 3px; border-radius: 2px; animation-delay: .9s; }
.bg-light.tube-5 { top: 6%;  left: 79%; width: 12px; height: 3px; border-radius: 2px; animation-delay: .4s; }

/* Robot kolu tabanındaki turuncu/kırmızı uyarı ışığı */
.bg-light.beacon { top: 50%; left: 68%; width: 7px; height: 7px; animation-delay: .8s; }

/* AGV üzerindeki mavi ışıklar */
.bg-light.agv-1 { top: 58.5%; left: 47.3%; width: 5px; height: 5px; animation-delay: .3s; }
.bg-light.agv-2 { top: 58.5%; left: 48.6%; width: 5px; height: 5px; animation-delay: .7s; }

@keyframes bg-light-blink {
  0%, 100% { opacity: .4; transform: scale(.82); }
  50%      { opacity: 1;  transform: scale(1.18); }
}

/* ── Üst şerit: sidebar ikon rayı + saat/tarih ── */
.login-topbar {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem 0;
}

.login-brand-row { display: flex; align-items: center; gap: .9rem; }
.login-brand-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #06121a; font-size: 1.1rem;
}
.login-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.login-brand-icon-sm { width: 40px; height: 40px; font-size: 1.05rem; }
.login-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}
.login-wordmark-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 3px;
  color: var(--ind-ink-400);
}

.login-clock {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  color: var(--ind-ink-100);
  background: rgba(12,17,23,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .45rem .9rem;
  backdrop-filter: blur(6px);
  font-size: 12.5px;
}
.login-clock .sep { color: var(--ind-line-700); }
.login-clock .date { color: var(--ind-ink-400); }

/* ── Ana içerik grid ── */
.login-main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  gap: 3rem;
}

.login-pitch { flex: 1; max-width: 560px; color: #fff; }

.login-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.login-headline .accent { color: var(--ind-arc-blue); }

.login-desc {
  color: #cbd3dc;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 2rem;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.2rem;
}
.login-feature-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  color: #dfe4ea;
}
.feature-badge {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(63,182,255,.14);
  border: 1px solid rgba(63,182,255,.3);
  color: var(--ind-arc-blue);
  font-size: 13px;
}

/* Sistem durumu kartı */
.status-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(12,17,23,.6);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .9rem 1.2rem;
  backdrop-filter: blur(6px);
}
.status-card .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--ind-ink-400);
  text-transform: uppercase;
}
.status-card .title { color: #fff; font-weight: 600; font-size: .92rem; margin: 2px 0 3px; }
.status-card .online { color: var(--ind-safe-green); font-size: .78rem; display: flex; align-items: center; gap: 5px; }
.status-card .online::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ind-safe-green);
  box-shadow: 0 0 6px var(--ind-safe-green);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% {opacity:.5;} 50% {opacity:1;} }

.status-wave {
  width: 64px; height: 24px;
}
.status-wave path {
  fill: none;
  stroke: var(--ind-safe-green);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(51,209,122,.6));
}

/* ── Yüzen pano kartı ── */
.login-card-wrap { flex-shrink: 0; }

.login-card {
  width: 360px;
  background: rgba(15,20,26,.82);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 2.1rem 1.8rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.login-card-header { text-align: center; margin-bottom: 1.3rem; }
.login-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #fff;
  margin: 0;
}
.login-title .accent { color: var(--ind-arc-blue); }
.login-subtitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--ind-ink-400);
  text-transform: uppercase;
  margin-top: .3rem;
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1rem 0 1.4rem;
}
.login-divider .line {
  height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--ind-arc-blue-dim));
}
.login-divider .line.r { background: linear-gradient(90deg, var(--ind-arc-blue-dim), transparent); }
.login-divider i { color: var(--ind-arc-blue); font-size: 12px; }

.login-right .form-label,
.login-card .form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ind-ink-400) !important;
}
.login-card .form-control {
  background: rgba(5,7,10,.6) !important;
  border: 1px solid var(--ind-line-700) !important;
  color: #fff !important;
  border-radius: 7px;
}
.login-card .form-control:focus {
  border-color: var(--ind-arc-blue) !important;
  box-shadow: 0 0 0 3px rgba(63,182,255,.16) !important;
}
.login-card .form-control::placeholder { color: #5a6472; }
.login-card .btn-outline-secondary {
  background: rgba(5,7,10,.6);
  border: 1px solid var(--ind-line-700);
  color: var(--ind-ink-400);
}
.login-card .form-check-label { color: var(--ind-ink-400); font-size: .82rem; }
.login-card .forgot-link {
  font-size: .82rem;
  color: var(--ind-arc-blue);
  text-decoration: none;
}

.btn-login {
  width: 100%;
  background: linear-gradient(180deg, #4cc3ff, #1f9ae0);
  border: none;
  color: #06121a;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: .75rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(63,182,255,.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(63,182,255,.45); }
.btn-login:active { transform: translateY(0); }

/* Bağlantı kuruluyor toast */
.connect-toast {
  display: none;
  margin-top: 1.1rem;
  padding: .8rem .9rem;
  border-radius: 8px;
  background: rgba(63,182,255,.08);
  border: 1px solid rgba(63,182,255,.25);
}
.connect-toast.show { display: block; }
.connect-toast .row1 { display: flex; align-items: center; gap: .6rem; }
.connect-toast .spin-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(63,182,255,.3);
  border-top-color: var(--ind-arc-blue);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.connect-toast .msg { font-size: .82rem; color: #fff; font-weight: 600; }
.connect-toast .sub { font-size: .74rem; color: var(--ind-ink-400); margin-top: 2px; }
.connect-toast .bar-track {
  margin-top: .6rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.connect-toast .bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ind-arc-blue), var(--ind-safe-green));
  border-radius: 2px;
  transition: width .6s ease;
}

.login-footer-bar {
  position: relative; z-index: 2;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,.45);
}

@media (max-width: 991px) {
  .login-pitch { display: none; }
  .login-main { justify-content: center; padding: 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .status-card .online::before, .connect-toast .spin-icon { animation: none !important; }
}
