/* ==========================================================================
   İnsya ERP — Giriş sayfası (erp-login)
   Masaüstü (erp-desk) görsel diline uyarlama (pencere çerçevesi yok). login.php'de login.css'ten sonra
   yüklenir; yalnızca görünümü değiştirir, form ve alanlar aynıdır.
   Sol paneldeki ayarlardan gelen görsel ($login_style, özel gün görselleri)
   korunur, üzerine sage ton uygulanır.
   Bootstrap / jQuery yok — İnsya giriş bileşenleri: .lp-shell / .lp-row / .lp-field / .lp-btn / .lp-alert
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.lp-shell {
  width: 920px;
  max-width: 100%;
  padding: 0;
}

.lp-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.lp-brand {
  position: relative;
  flex: 0 0 40%;
  width: 40%;
  max-width: 40%;
  min-width: 0;
}

.lp-panel {
  position: relative;
  flex: 0 0 60%;
  width: 60%;
  max-width: 60%;
  min-width: 0;
}

.lp-center { text-align: center; }

.lp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
}

.lp-btn--block {
  display: flex;
  width: 100%;
}

.lp-btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.lp-alert {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px !important;
  font-size: 12px;
  border: 1px solid transparent;
  list-style: none;
  overflow: hidden;
  background-clip: padding-box;
}

.lp-alert--danger {
  background: #f6ddd4;
  border-color: #e3b1a2;
  color: #7c2412;
}

.lp-alert--success {
  background: #dfeccf;
  border-color: #b6d0a4;
  color: #24502a;
}

.lp-help {
  display: block;
}

/* Şifre sıfırlama / değiştirme kartı */
.lp-auth-card {
  width: min(420px, 100%);
  margin: auto;
  animation: erp-login-arrive 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lp-auth-panel {
  background: #f1f0e4;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(37, 67, 50, 0.22), 0 4px 14px rgba(37, 67, 50, 0.1);
}

.lp-auth-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 8px;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(83, 105, 83, 0.18);
}

.lp-auth-header .language {
  align-self: flex-end;
}

.lp-auth-title {
  margin: 0;
  text-align: center;
}

.lp-auth-title img {
  max-height: 48px;
  width: auto;
}

.lp-auth-body {
  padding: 22px 22px 26px;
}

.lp-auth-body .lp-field {
  margin-bottom: 12px;
}

.lp-auth-note {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  color: #6a5a2a;
  line-height: 1.45;
}

.lp-auth-links {
  margin: 12px 0 14px;
  text-align: center;
  font-size: 12px;
}

.lp-auth-links a {
  color: #2b5038;
  text-decoration: none;
  font-weight: 600;
}

.lp-auth-links a:hover {
  text-decoration: underline;
}

.lp-auth-body .lp-alert {
  margin: 8px 0 12px;
}

html,
body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  color: #23392d;
  -webkit-font-smoothing: antialiased;
}

body {
  background: transparent !important;
  position: relative;
  padding: 10vh 16px 24px;
  overflow-x: hidden;
}

/* Duvar kağıdı: yumuşak şekiller + nokta ızgarası */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  box-shadow: inset -25px -30px 45px rgba(101, 130, 99, 0.2);
}

body::before {
  width: 80vw;
  height: 80vw;
  left: -25vw;
  top: 7%;
  background: linear-gradient(135deg, rgba(229, 239, 202, 0.75), rgba(145, 177, 155, 0.55));
  transform: rotate(-25deg);
}

body::after {
  width: 70vw;
  height: 45vw;
  right: -18vw;
  top: 22%;
  background: linear-gradient(145deg, rgba(117, 153, 144, 0.65), rgba(236, 237, 189, 0.55));
  transform: rotate(-45deg);
}

html {
  background-image:
    radial-gradient(rgba(43, 77, 48, 0.12) 0.75px, transparent 0.8px),
    radial-gradient(ellipse at 60% 0%, #f3edce, #becfbf 65%) !important;
  background-size: 14px 14px, auto !important;
  background-attachment: fixed, fixed !important;
  background-color: #becfbf !important;
}

/* ---------------- Giriş kartı ---------------- */
.login-container.lp-shell,
.login-container {
  width: 920px;
  max-width: 100%;
  padding: 0;
}

.login-container > .lp-row:first-child {
  flex-wrap: nowrap;
  margin: 0;
  background: #f1f0e4;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(37, 67, 50, 0.22), 0 4px 14px rgba(37, 67, 50, 0.1);
  animation: erp-login-arrive 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}


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

/* ---------------- Sol marka paneli ---------------- */
.login-left,
.lp-brand.login-left {
  position: relative;
  box-shadow: inset 0 0 0 2000px rgba(35, 57, 45, 0.62) !important;
  background-color: #2b5038;
  background-size: cover;
  background-position: center;
  color: #f1f6e6;
  padding: 32px 34px;
  min-height: 420px;
  /* Kart 20px; sol paneli kendi köşelerine oturt (overflow sızıntısı / kare köşe olmasın) */
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}

.login-left .brand-title {
  color: #f1f6e6;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.1;
}

.login-left .brand-title strong {
  font-weight: 700;
}

.login-left .brand-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: #cfe0c6;
}

.login-left .login-brand,
.login-left::after {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  color: rgba(241, 246, 230, 0.7);
}

/* ---------------- Sağ form paneli ---------------- */
.login-right,
.lp-panel.login-right {
  position: relative;
  background: #f1f0e4;
  box-shadow: none;
  padding: 44px 5% 40px;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}

.login-right h6 {
  font: 700 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #698363;
  margin-bottom: 14px;
}

.iy-logo {
  margin-top: 26px;
  margin-bottom: 30px;
}

.login-right .buttons {
  top: 14px;
  right: 16px;
}

.language {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language a {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(83, 105, 83, 0.35) !important;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #2b5038 !important;
  font: 600 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}

.language a:hover {
  background: #fff;
  border-color: #2b5038 !important;
}

.language .lp-icon-btn,
.lp-icon-btn {
  margin-left: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(83, 105, 83, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #2b5038;
  opacity: 1;
  font-size: 14px;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.language .lp-icon-btn:hover,
.lp-icon-btn:hover {
  background: #fff;
}

/* Alanlar — İnsya lp-field (iu-input / --et-* diline yakın)
   BS .form-group margin-bottom kalkınca login.css *{margin:0} yüzünden kutular yapışıyordu */
.login-right,
.lp-auth-body {
  --lp-ink: #23392d;
  --lp-muted: #6f846b;
  --lp-accent: #2b5038;
  --lp-line: rgba(83, 105, 83, 0.35);
  --lp-line-hover: rgba(43, 80, 56, 0.55);
  --lp-surface: rgba(255, 255, 255, 0.72);
  --lp-surface-solid: #ffffff;
  --lp-ring: rgba(43, 80, 56, 0.18);
  --lp-radius: 8px;
}

.lp-field {
  border: 1px solid var(--lp-line);
  border-radius: 8px !important; /* login.css 2px ezmesin */
  background: var(--lp-surface);
  margin: 0 0 12px !important;
  overflow: hidden; /* köşe kırpma; focus halkası outline ile */
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease, outline-color 0.15s ease;
}

.lp-field:last-of-type {
  margin-bottom: 10px !important;
}

.lp-field:hover {
  background: var(--lp-surface-solid);
  border-color: var(--lp-line-hover);
}

.lp-field label {
  display: block;
  font: 700 9px/1.2 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.8px;
  color: var(--lp-muted) !important;
  padding: 7px 12px 0 !important;
  margin: 0 !important;
  line-height: 1.2;
  pointer-events: none;
}

.lp-field input.lp-input {
  display: block;
  width: 100%;
  height: 26px !important;
  min-height: 26px;
  padding: 2px 12px 8px !important;
  margin: 0 !important;
  font-size: 14px;
  line-height: 22px;
  color: var(--lp-ink);
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.lp-field input.lp-input::placeholder {
  color: rgba(111, 132, 107, 0.55);
}

/* İnsya focus: köşe için overflow:hidden kalır; halka outline (clip edilmez) */
.login-right .lp-field.focus,
.login-right .lp-field:focus-within,
.lp-auth-body .lp-field.focus,
.lp-auth-body .lp-field:focus-within {
  background: #ffffff !important;
  border: 1px solid #2b5038 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: 3px solid rgba(43, 80, 56, 0.18);
  outline-offset: 2px;
}

.lp-field input.lp-input:focus,
.lp-field input.lp-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* Autocomplete: sarı Chrome boyasını İnsya yüzeyine çek */
.lp-field input.lp-input:-webkit-autofill,
.lp-field input.lp-input:-webkit-autofill:hover,
.lp-field input.lp-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lp-ink) !important;
  caret-color: var(--lp-ink);
  box-shadow: 0 0 0 1000px var(--lp-surface-solid) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--lp-surface-solid) inset !important;
  transition: background-color 99999s ease-out;
  border: 0 !important;
}

.lp-field:has(input.lp-input:-webkit-autofill) {
  background: var(--lp-surface-solid);
}

/* Giriş butonu */
.lp-btn.btn-submit,
.btn-submit {
  height: 42px;
  margin-top: 6px;
  border: 0 !important;
  border-radius: var(--lp-radius, 8px);
  background: var(--lp-accent, #2b5038) !important;
  color: #f1f6e6 !important;
  font: 600 11px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(30, 58, 40, 0.35);
  outline: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.15s ease;
}

.lp-btn.btn-submit:hover,
.lp-btn.btn-submit:focus,
.lp-btn.btn-submit:active,
.btn-submit:hover,
.btn-submit:focus,
.btn-submit:active {
  background: #1e3a28 !important;
  color: #f1f6e6 !important;
  transform: translateY(-1px);
}

.lp-btn.btn-submit:focus-visible {
  box-shadow: 0 0 0 3px var(--lp-ring, rgba(43, 80, 56, 0.18)), 0 3px 0 rgba(30, 58, 40, 0.35);
}

/* Uyarılar */
.login-right .lp-alert {
  border-radius: 8px !important;
  font-size: 12px;
  border: 1px solid transparent;
  overflow: hidden;
}

.login-right .lp-alert--danger {
  background: #f6ddd4;
  border-color: #e3b1a2;
  color: #7c2412;
}

.login-right .lp-alert--success {
  background: #dfeccf;
  border-color: #b6d0a4;
  color: #24502a;
}

/* Alt bilgi */
.copy-right {
  justify-content: center;
  color: #50634f;
  font: 10px/1.5 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}

.copy-right a {
  color: #2b5038;
}

/* ---------------- Mobil ---------------- */
@media (max-width: 767px) {
  body {
    padding-top: 16px;
  }
  .login-container > .lp-row:first-child {
    flex-wrap: wrap;
  }
  .lp-brand,
  .lp-panel,
  .login-left,
  .login-right {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .login-left,
  .lp-brand.login-left {
    min-height: 150px;
    padding: 22px 22px 40px;
    border-radius: 20px 20px 0 0;
  }
  .login-right,
  .lp-panel.login-right {
    padding: 56px 22px 28px;
    border-radius: 0 0 20px 20px;
  }
  .iy-logo {
    margin-top: 0;
  }
}

/* Dikey ve yatay ortalama (içerik ekrandan uzunsa üstten kesilmez) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px !important;
}

.login-container {
  margin: auto;
}

.copy-right {
  padding: 18px 0 0;
}

.copy-right br + br {
  display: none;
}

/* ==========================================================================
   Sinematik marka girişi (sol panel)
   Siyahtan açılış + ışık huzmesi -> başlık bulanıklıktan netleşir -> KMHI parlar
   -> alt çizgi uzar -> alt başlık perde gibi açılır -> künye belirir
   ========================================================================== */
.login-left .brand-title,
.login-left .brand-subtitle {
  position: relative;
  z-index: 2;
}

.login-left .login-brand {
  z-index: 2;
}

/* Siyahtan açılış ve geçen ışık */
.login-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 35%, rgba(241, 246, 230, 0.22) 50%, transparent 65%) -160% 0 / 60% 100% no-repeat,
    #0c1510;
  animation: erp-cine-open 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
}

@keyframes erp-cine-open {
  0% { background-position: -160% 0, 0 0; background-color: #0c1510; }
  45% { background-color: rgba(12, 21, 16, 0.55); }
  100% { background-position: 260% 0, 0 0; background-color: rgba(12, 21, 16, 0); }
}

/* Başlık: bulanık ve geniş harf aralığından netleşir */
.login-left .brand-title {
  position: relative;
  padding-bottom: 14px;
  animation: erp-cine-title 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes erp-cine-title {
  from {
    opacity: 0;
    filter: blur(14px);
    letter-spacing: 0.32em;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: -1px;
    transform: none;
  }
}

.login-left .brand-title strong {
  display: inline-block;
  animation: erp-cine-mark 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

@keyframes erp-cine-mark {
  0% {
    opacity: 0;
    transform: translateX(-12px) scale(0.96);
    filter: blur(8px);
    text-shadow: none;
  }
  55% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 18px rgba(207, 224, 198, 0.9), 0 0 42px rgba(143, 191, 138, 0.55);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
    text-shadow: 0 0 10px rgba(143, 191, 138, 0.25);
  }
}

/* Başlık altı çizgi */
.login-left .brand-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 64px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8fbf8a, rgba(143, 191, 138, 0));
  transform-origin: left center;
  animation: erp-cine-line 1.1s cubic-bezier(0.65, 0, 0.35, 1) 2.1s both;
}

@keyframes erp-cine-line {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* Alt başlık: daktilo yerine perde açılışı */
.login-left .brand-subtitle {
  width: auto;
  margin-top: 14px;
  animation: erp-cine-sub 1.6s cubic-bezier(0.65, 0, 0.35, 1) 2.4s both;
}

@keyframes erp-cine-sub {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.2;
    filter: blur(4px);
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }
}

.login-left .brand-subtitle span {
  margin-left: 2px;
  color: #8fbf8a;
  animation: blink 1s 4s infinite;
}

/* Künye: sürüm ve görsel sahibi */
.login-left .login-brand,
.login-left::after {
  animation: erp-cine-fade 1.2s ease 3.2s both;
}

@keyframes erp-cine-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-left::before,
  .login-left .brand-title,
  .login-left .brand-title strong,
  .login-left .brand-title::after,
  .login-left .brand-subtitle,
  .login-left .brand-subtitle span,
  .login-left .login-brand,
  .login-left::after,
  .login-container > .lp-row:first-child {
    animation: none !important;
  }
  .login-left::before {
    display: none;
  }
}

/* ==========================================================================
   Hakkında / Changelog modal — erp-desk diline uyum
   ========================================================================== */
.erp-login-modal .lp-dialog-box {
  width: 400px;
  max-width: calc(100vw - 32px);
  margin: 12vh auto;
}

.erp-login-modal .lp-dialog-box.lp-dialog-box--lg {
  width: min(720px, calc(100vw - 32px));
}

.erp-login-modal .lp-dialog-content {
  background: #f1f0e4;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(37, 67, 50, 0.28), 0 4px 14px rgba(37, 67, 50, 0.12);
  overflow: hidden;
}

.erp-login-modal .lp-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(83, 105, 83, 0.18);
}

.erp-login-modal .lp-dialog-title {
  margin: 0;
  font: 700 11px/1.2 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2b5038;
}

.erp-login-modal .lp-dialog-head .lp-icon-btn {
  float: none;
  margin: 0;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(83, 105, 83, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #2b5038;
  opacity: 1;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  text-shadow: none;
}

.erp-login-modal .lp-dialog-head .lp-icon-btn:hover {
  background: #fff;
  opacity: 1;
}

.erp-login-modal .lp-dialog-body {
  padding: 22px 20px 24px;
  color: #23392d;
}

.erp-login-modal .lp-dialog-foot {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(83, 105, 83, 0.18);
  text-align: right;
}

.erp-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.erp-about-logo {
  width: 72px;
  height: auto;
  margin: 4px 0 6px;
  filter: drop-shadow(0 4px 10px rgba(37, 67, 50, 0.18));
}

.erp-about-brand {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b5038;
}

.erp-about-brand span {
  display: inline-block;
  margin-left: 6px;
  font: 600 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.8px;
  color: #698363;
  vertical-align: middle;
}

.erp-about-link {
  font: 600 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2b5038 !important;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(83, 105, 83, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.erp-about-link:hover {
  background: #fff;
  text-decoration: none;
}

.erp-about-contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 12px/1.4 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
}

.erp-about-contact a {
  color: #23392d !important;
  text-decoration: none;
}

.erp-about-contact a:hover {
  color: #2b5038 !important;
}

.erp-changelog {
  margin: 0;
  max-height: min(60vh, 480px);
  overflow: auto;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(83, 105, 83, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #23392d;
  font: 12px/1.5 "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.erp-modal-btn,
.lp-btn.erp-modal-btn {
  height: 34px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 8px;
  background: #2b5038 !important;
  color: #f1f6e6 !important;
  font: 600 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(30, 58, 40, 0.35);
}

.erp-modal-btn:hover,
.erp-login-modal .erp-modal-btn:hover {
  background: #1e3a28 !important;
  color: #f1f6e6 !important;
}

.modal-backdrop.in {
  opacity: 0.4;
  background: #1a2a20;
}

/* ==========================================================================
   lp-v2 — Claude-tarzı split giriş (form sol, görsel sağ)
   login.css * reset ve eski kart stillerini ezer; yalnızca body.lp-v2
   ========================================================================== */
body.lp-v2 {
  --lp2-bg: #f4f1ea;
  --lp2-card: #ffffff;
  --lp2-ink: #1a1a1a;
  --lp2-muted: #5c5c5c;
  --lp2-line: rgba(0, 0, 0, 0.12);
  --lp2-accent: #2b5038;
  --lp2-accent-ink: #f1f6e6;
  --lp2-radius: 12px;
  --lp2-radius-lg: 28px;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lp2-bg) !important;
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  color: var(--lp2-ink);
  overflow-x: hidden;
}

body.lp-v2::before,
body.lp-v2::after {
  display: none !important;
}

html:has(body.lp-v2) {
  background: var(--lp2-bg) !important;
  background-image: none !important;
}

body.lp-v2 .lp-split {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  align-items: stretch;
}

body.lp-v2 .lp-form-col {
  display: flex;
  flex-direction: column;
  padding: 28px 40px 24px;
  min-width: 0;
}

body.lp-v2 .lp-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

body.lp-v2 .lp-brandmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--lp2-ink);
}

/* iy-logo.svg çift katmanlı (üst: renkli, alt: beyaz); yalnızca üst yarı */
body.lp-v2 .lp-brandmark-logo {
  display: block;
  width: 152px;
  height: 40px;
  margin: 0;
  overflow: hidden;
  text-indent: -9999px;
  background: url("/assets/admin/img/iy-logo.svg") left top / auto 200% no-repeat;
  flex: 0 0 auto;
}

body.lp-v2 .lp-form-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 0 32px;
}

body.lp-v2 .lp-headline {
  margin: 0 0 10px;
  text-align: center;
  font: 500 clamp(1.75rem, 3.2vw, 2.35rem) / 1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  color: var(--lp2-ink);
}

body.lp-v2 .lp-subhead {
  margin: 0 0 28px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: var(--lp2-muted);
  max-width: 34ch;
}

body.lp-v2 .lp-card {
  position: relative;
  width: 100%;
  padding: 22px;
  background: var(--lp2-card);
  border: 1px solid var(--lp2-line);
  border-radius: var(--lp2-radius-lg);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

body.lp-v2 .lp-card-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

body.lp-v2 .lp-card-tools.language {
  margin: 0;
}

body.lp-v2 .lp-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

body.lp-v2 .lp-label {
  display: block;
  margin: 0 0 6px;
  font: 600 12px/1.2 inherit;
  color: var(--lp2-muted);
  text-transform: none;
  letter-spacing: 0;
}

body.lp-v2 .lp-label + .lp-control + .lp-label {
  margin-top: 12px;
}

body.lp-v2 .lp-control {
  width: 100%;
  height: 44px !important;
  margin: 0 0 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--lp2-line) !important;
  border-radius: var(--lp2-radius) !important;
  background: #fafafa !important;
  color: var(--lp2-ink) !important;
  font-size: 15px !important;
  line-height: 44px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.lp-v2 .lp-control:hover {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

body.lp-v2 .lp-control:focus,
body.lp-v2 .lp-control:focus-visible {
  background: #fff !important;
  border-color: var(--lp2-accent) !important;
  box-shadow: 0 0 0 3px rgba(43, 80, 56, 0.16) !important;
  outline: none !important;
}

body.lp-v2 .lp-control:-webkit-autofill,
body.lp-v2 .lp-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lp2-ink) !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  border-radius: var(--lp2-radius) !important;
}

body.lp-v2 .lp-alert {
  margin: 12px 0 0 !important;
  border-radius: var(--lp2-radius) !important;
}

body.lp-v2 .lp-btn--primary.btn-submit,
body.lp-v2 .btn-submit {
  width: 100%;
  height: 44px !important;
  margin-top: 16px !important;
  border: 0 !important;
  border-radius: var(--lp2-radius) !important;
  background: var(--lp2-accent) !important;
  color: var(--lp2-accent-ink) !important;
  font: 600 14px/1 inherit !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.lp-v2 .lp-btn--primary.btn-submit:hover,
body.lp-v2 .btn-submit:hover {
  background: #1e3a28 !important;
  transform: none !important;
}

body.lp-v2 .lp-legal {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #8a8a8a;
}

body.lp-v2 .lp-foot {
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--lp2-muted);
}

body.lp-v2 .lp-foot a {
  color: inherit;
  text-decoration: none;
}

body.lp-v2 .lp-foot a:hover {
  text-decoration: underline;
}

body.lp-v2 .lp-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px 36px 12px;
  min-height: 100vh;
  min-height: 100dvh;
}

body.lp-v2 .lp-visual-frame.login-left {
  position: relative;
  width: 100% !important; /* login.css .login-left width:40% !important ezmesin */
  max-width: 520px !important;
  height: min(640px, calc(100vh - 72px));
  height: min(640px, calc(100dvh - 72px));
  min-height: 480px;
  margin: 0;
  padding: 36px 32px !important;
  border-radius: var(--lp2-radius-lg) !important;
  background-color: #2b5038;
  background-size: cover !important;
  background-position: center !important;
  box-shadow:
    inset 0 0 0 2000px rgba(35, 57, 45, 0.55),
    0 18px 48px rgba(26, 40, 30, 0.22);
  overflow: hidden !important;
  color: #f1f6e6;
  flex: 0 1 auto;
}

body.lp-v2 .lp-visual-frame .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.lp-v2 .lp-visual-frame .brand-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 300;
  letter-spacing: -1px;
  color: #f1f6e6;
  margin: 0;
}

body.lp-v2 .lp-visual-frame .brand-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: #cfe0c6;
  margin: 0;
  white-space: normal;
  width: auto !important;
  max-width: 100%;
  overflow: visible;
  /* login.css daktilo yerine sinematik perde */
  animation: erp-cine-sub 1.6s cubic-bezier(0.65, 0, 0.35, 1) 2.4s both !important;
}

body.lp-v2 .lp-visual-frame .login-brand {
  position: absolute;
  left: 0;
  bottom: 0;
  font: 10px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  color: rgba(241, 246, 230, 0.7);
}

/* Sinematik animasyonlar — görsel panelde (.login-left kuralları geçerli) */
body.lp-v2 .lp-visual-frame.login-left::before {
  border-radius: inherit;
}

/* Dil ve yardım düğmeleri: dinlenirken çerçevesiz ve sönük, üzerine gelince / odakta hafif zemin + çerçeve */
body.lp-v2 .language a,
body.lp-v2 .language .lp-icon-btn {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--lp2-muted) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.lp-v2 .language a:hover,
body.lp-v2 .language .lp-icon-btn:hover,
body.lp-v2 .language a:focus-visible,
body.lp-v2 .language .lp-icon-btn:focus-visible {
  border-color: var(--lp2-line) !important;
  background: rgba(43, 80, 56, 0.07) !important;
  color: var(--lp2-ink) !important;
}

body.lp-v2 .language a:focus-visible,
body.lp-v2 .language .lp-icon-btn:focus-visible {
  outline: 2px solid var(--lp2-accent);
  outline-offset: 2px;
}

body.lp-v2 .language .lp-icon-btn {
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  body.lp-v2 .language a,
  body.lp-v2 .language .lp-icon-btn {
    transition: none;
  }
}

@media (max-width: 900px) {
  body.lp-v2 .lp-split {
    grid-template-columns: 1fr;
  }
  body.lp-v2 .lp-visual {
    order: -1;
    min-height: 0;
    padding: 16px 16px 0;
    justify-content: center;
  }
  body.lp-v2 .lp-visual-frame.login-left {
    max-width: none !important;
    width: 100% !important;
    height: 280px;
    min-height: 240px;
  }
  body.lp-v2 .lp-form-col {
    padding: 20px 20px 28px;
  }
}

/* Dokunmatik ekran: iOS Safari 16px altı alana odaklanınca sayfayı yakınlaştırır; giriş alanları 16px olur
   (bu sayfa insya-ui.css yüklemediği için kural burada). */
@media (pointer: coarse) {
  body.lp-v2 .lp-control {
    font-size: 16px !important;
  }
}
