/* ============================================================
   login.css — Giriş ekranı. theme.css'ten sonra yüklenir.
   ============================================================ */

.login-shell { background: var(--bg); }
.login-shell .sidebar,
.login-shell .header,
.login-shell .footer { background: rgba(17, 24, 31, 0.85); backdrop-filter: blur(6px); }
.login-shell .nav-item { cursor: default; opacity: 0.55; }
.login-shell .nav-item:hover { background: none; color: var(--muted); }

.login-main {
  grid-column: 2;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: rgba(17, 24, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.login-box .head { text-align: center; margin-bottom: 22px; }
.login-box .mark {
  width: 48px; height: 48px; margin: 0 auto 12px;
  background: var(--accent);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px; color: #14181c;
  box-shadow: 0 8px 24px rgba(246, 133, 27, 0.28);
}
.login-box h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.login-box .head p { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }

.login-box .btn-submit {
  width: 100%;
  background: var(--accent);
  color: #14181c;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  margin-top: 4px;
}
.login-box .btn-submit:hover { filter: brightness(1.08); }
.login-box .btn-submit:disabled { opacity: 0.6; cursor: wait; }

.login-error {
  display: none;
  margin-top: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.login-error.show { display: block; }

.demo-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.7;
}
.demo-note b { color: var(--muted); font-weight: 600; }
.demo-note .row {
  display: flex; justify-content: space-between; gap: 10px;
  cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
.demo-note .row:hover { background: var(--raised); color: var(--text-2); }

/* ===== HAREKETLİ ARKA PLAN ===== */
.backdrop {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.backdrop .train {
  position: absolute;
  bottom: 20px; left: -400px;
  display: flex; align-items: flex-end;
  animation: trainMove 25s linear infinite;
  filter: drop-shadow(0 10px 30px rgba(246, 133, 27, 0.2));
}
.backdrop .locomotive {
  position: relative;
  width: 140px; height: 70px;
  background: linear-gradient(180deg, var(--line-soft), var(--panel-2));
  border-radius: 10px 10px 0 0;
  border-bottom: 4px solid var(--accent);
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.5);
}
.backdrop .locomotive::before {
  content: '';
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  animation: glowPulse 1.5s ease-in-out infinite;
}
.backdrop .locomotive .window {
  position: absolute; top: 12px; left: 20px;
  width: 25px; height: 25px;
  background: rgba(43, 124, 214, 0.3);
  border-radius: 4px;
  border: 2px solid var(--line-soft);
}
.backdrop .locomotive .window:nth-child(2) { left: 55px; }
.backdrop .locomotive .window:nth-child(3) { left: 90px; }

.backdrop .wagon {
  width: 100px; height: 60px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border-radius: 6px 6px 0 0;
  border-bottom: 3px solid var(--line-soft);
  margin-left: -2px;
  position: relative;
}
.backdrop .wagon .wagon-window {
  position: absolute; top: 10px; left: 10px;
  width: 20px; height: 18px;
  background: rgba(43, 124, 214, 0.2);
  border-radius: 3px;
  border: 2px solid #2a3542;
}
.backdrop .wagon .wagon-window:nth-child(2) { left: 38px; }
.backdrop .wagon .wagon-window:nth-child(3) { left: 66px; }
.backdrop .wagon .wagon-window.light {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.backdrop .rails {
  position: absolute; bottom: 16px; left: 0;
  width: 100%; height: 4px;
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 30px, transparent 30px 40px);
  opacity: 0.3;
}
.backdrop .rails::before,
.backdrop .rails::after {
  content: '';
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--raised) 0 30px, transparent 30px 40px);
}
.backdrop .rails::before { bottom: 6px; }
.backdrop .rails::after { bottom: -4px; }

@keyframes trainMove {
  0% { transform: translateX(-400px); }
  100% { transform: translateX(calc(100vw + 400px)); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(246, 133, 27, 0.55); }
  50% { box-shadow: 0 0 50px rgba(246, 133, 27, 0.9); }
}

@media (max-width: 860px) {
  .login-main { grid-column: 1; }
  .backdrop .locomotive { width: 100px; height: 50px; }
  .backdrop .wagon { width: 70px; height: 42px; }
  .backdrop .locomotive .window { width: 16px; height: 16px; top: 8px; left: 12px; }
  .backdrop .locomotive .window:nth-child(2) { left: 38px; }
  .backdrop .locomotive .window:nth-child(3) { left: 64px; }
  .backdrop .wagon .wagon-window { width: 14px; height: 14px; top: 6px; left: 8px; }
  .backdrop .wagon .wagon-window:nth-child(2) { left: 28px; }
  .backdrop .wagon .wagon-window:nth-child(3) { left: 48px; }
}

/* ============================================================
   GİRİŞ EKRANI — muhasebe yazılımı kimliği
   ============================================================ */

/* Sidebar grup başlıkları */
.sidebar .nav-grup {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 14px 16px 5px;
  opacity: .7;
}
.sidebar .nav-grup:first-of-type { padding-top: 8px; }

/* Giriş öncesi menü: görünür ama edilgen */
.sidebar .nav-item {
  opacity: .42;
  cursor: default;
  font-size: 12.5px;
  padding: 7px 16px;
  transition: opacity .2s;
}
.sidebar .nav-item:hover { opacity: .62; background: none; }
.sidebar .nav-item.kilit {
  opacity: .8;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

/* Giriş kutusu başlığı */
.login-box .head .mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  font-size: 24px; font-weight: 800;
  background: linear-gradient(145deg, var(--accent), #b4541f);
  color: #14181c;
  box-shadow: 0 6px 20px rgba(232, 122, 47, .28);
  letter-spacing: -.5px;
}
.login-box .head h1 {
  font-size: 25px;
  letter-spacing: -.6px;
  margin-bottom: 4px;
}
.login-box .head p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Modül rozetleri */
.modul-rozet {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.modul-rozet span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}

/* Ayraç */
.login-box .ayrac {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.login-box .ayrac::before,
.login-box .ayrac::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Alt bilgi şeridi */
.login-alt {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--muted-2);
}
.login-alt span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.login-alt .material-symbols-rounded { font-size: 13px; }

/* Kurulum hesapları tablosu */
.demo-note {
  margin-top: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 13px;
  background: var(--panel-2);
}
.demo-note b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.demo-note .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  transition: background .15s;
}
.demo-note .row:hover { background: var(--raised); }
.demo-note .row span:first-child {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  color: var(--text);
}
.demo-note .row span:last-child {
  font-size: 10.5px;
  color: var(--muted-2);
}

@media (max-height: 820px) {
  .modul-rozet { display: none; }
  .login-box .head .mark { width: 44px; height: 44px; font-size: 20px; margin-bottom: 8px; }
  .login-box .head h1 { font-size: 21px; }
}

/* ============================================================
   İKİ SÜTUNLU GİRİŞ DÜZENİ
   ============================================================ */
.login-duzen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 940px;
}

.login-tanitim { padding-right: 8px; }
.login-tanitim h2 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.8px;
  margin-bottom: 10px;
  color: var(--text);
}
.login-tanitim > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 420px;
}

.ozellik-liste { list-style: none; display: grid; gap: 14px; }
.ozellik-liste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ozellik-liste .material-symbols-rounded {
  font-size: 19px;
  color: var(--accent);
  background: rgba(232, 122, 47, .1);
  border: 1px solid rgba(232, 122, 47, .22);
  border-radius: 9px;
  padding: 7px;
  flex-shrink: 0;
}
.ozellik-liste b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.ozellik-liste span:not(.material-symbols-rounded) {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

.tanitim-alt {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .2px;
}

/* Dar ekranda tanıtım gizlenir, form ortalanır */
@media (max-width: 1180px) {
  .login-duzen { grid-template-columns: 380px; justify-content: center; }
  .login-tanitim { display: none; }
}
@media (max-height: 820px) {
  .login-tanitim h2 { font-size: 22px; }
  .ozellik-liste { gap: 10px; }
  .ozellik-liste li:nth-child(n+4) { display: none; }
  .tanitim-alt { margin-top: 16px; padding-top: 12px; }
}

/* Başlıktaki dil seçici */
.dil-kutu {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  margin-right: 10px;
}
.dil-kutu .material-symbols-rounded { font-size: 17px; color: var(--accent); }
.dil-kutu .dil-secici {
  background: none;
  border: none;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 0;
  min-width: 92px;
}
.dil-kutu:hover { border-color: var(--accent); }
