/* ==========================================================================
   Giriş / iki adımlı doğrulama / şifremi unuttum (login.pug, forgot.pug)
   ========================================================================== */
:root {
  --lg-navy: #0c2477; --lg-navy-600: #0a1d63; --lg-navy-900: #06123f; --lg-accent: #f26522;
  --lg-text: #1f2433; --lg-muted: #7a8194; --lg-border: #dfe3ee; --lg-red: #c02626; --lg-red-soft: #fdeeee;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.lg {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); min-height: 100vh;
  font-family: Roboto, Roboto-Regular, sans-serif; color: var(--lg-text); background: #f4f6fb;
}
[hidden] { display: none !important; }

/* ---------- Marka paneli ---------- */
.lg__brand {
  position: relative; overflow: hidden; display: flex; align-items: center; padding: 56px 64px;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(242, 101, 34, .22), transparent 60%),
    radial-gradient(700px 600px at 10% 95%, rgba(66, 110, 255, .25), transparent 60%),
    linear-gradient(160deg, #0e2a86 0%, var(--lg-navy) 45%, var(--lg-navy-900) 100%);
  color: #fff;
}
.lg__brand::before {
  content: ''; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.lg__brandInner { position: relative; width: 100%; max-width: 560px; }
.lg__logo { height: 56px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25)); }
.lg__claim { margin-top: 36px; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
.lg__desc { margin-top: 14px; max-width: 420px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .75); }
.lg__foot { margin-top: 48px; font-size: 12.5px; color: rgba(255, 255, 255, .45); letter-spacing: .3px; }

/* Ekran illüstrasyonu */
.lg__screens { position: relative; height: 200px; margin-top: 44px; }
.lg__screen {
  position: absolute; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(4px); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.lg__screen--a { left: 0; top: 18px; width: 280px; height: 158px; }
.lg__screen--b { left: 300px; top: 0; width: 92px; height: 164px; }
.lg__screen--c { left: 300px; top: 176px; width: 200px; height: 24px; padding: 6px 10px; flex-direction: row; align-items: center; }
.lg__bar { display: block; height: 10px; width: 70%; border-radius: 5px; background: rgba(255, 255, 255, .35); }
.lg__bar--s { width: 45%; background: rgba(255, 255, 255, .2); }
.lg__dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(242, 101, 34, .8); box-shadow: 0 0 22px rgba(242, 101, 34, .7); }
.lg__ticker {
  display: block; margin-top: auto; height: 22px; border-radius: 4px; background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 26px, transparent 26px 38px) 0 50% / 200% 4px no-repeat,
    rgba(0, 0, 0, .18);
  animation: lgTicker 6s linear infinite;
}
.lg__screen--c .lg__ticker { margin: 0; flex: 1; height: 8px; }
.lg__screen--c .lg__bar { width: 30px; height: 8px; flex: none; background: var(--lg-accent); }
@keyframes lgTicker { to { background-position: -200% 50%, 0 0; } }

/* ---------- Form paneli ---------- */
.lg__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg__card { width: 100%; max-width: 400px; }
.lg__logoSm { display: none; height: 40px; margin-bottom: 24px; }
.lg__title { font-size: 28px; font-weight: 700; color: var(--lg-navy); letter-spacing: -.3px; }
.lg__sub { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--lg-muted); }
.lg__error {
  margin-top: 18px; padding: 11px 14px; border-radius: 10px; background: var(--lg-red-soft); color: #9b1c1c;
  font-size: 13.5px; font-weight: 500; line-height: 1.45; border-left: 3px solid var(--lg-red);
}
form { margin-top: 24px; }
.lg__field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.lg__field label { font-size: 13px; font-weight: 600; color: #3a4256; }
.lg__labelRow { display: flex; align-items: baseline; justify-content: space-between; }
.lg__link { font-size: 13px; color: var(--lg-navy); font-weight: 500; text-decoration: none; }
.lg__link:hover { text-decoration: underline; }
.lg__input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--lg-border); border-radius: 12px; background: #fff;
  font: inherit; font-size: 15px; color: var(--lg-text); transition: border-color .15s ease, box-shadow .15s ease;
}
.lg__input:hover { border-color: #c5cce0; }
.lg__input:focus { outline: none; border-color: var(--lg-navy); box-shadow: 0 0 0 4px rgba(12, 36, 119, .12); }
.lg__input.is-invalid { border-color: var(--lg-red); box-shadow: 0 0 0 4px rgba(192, 38, 38, .1); }
.lg__input--code { height: 60px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 10px; font-variant-numeric: tabular-nums; }
.lg__pw { position: relative; }
.lg__pw .lg__input { padding-right: 48px; }
.lg__eye {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 32px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8194' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.lg__eye:hover { background-color: #f1f3f9; }
.lg__eye.is-on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2477' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.9 17.9A10 10 0 0 1 12 19C5 19 1 12 1 12a18 18 0 0 1 5.1-5.9M9.9 4.2A9 9 0 0 1 12 4c7 0 11 8 11 8a18 18 0 0 1-2.2 3.2M1 1l22 22'/%3E%3C/svg%3E"); }
.lg__caps { font-size: 12px; font-weight: 600; color: #b45309; }
.lg__fieldErr { min-height: 18px; margin: -6px 0 8px; font-size: 13px; color: var(--lg-red); font-weight: 500; }
.lg__fieldErr:empty { min-height: 0; margin: 0; }

.lg__btn {
  position: relative; width: 100%; height: 50px; margin-top: 6px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--lg-navy); color: #fff; font: 600 15px Roboto, sans-serif; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(12, 36, 119, .28); transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lg__btn:hover:not(:disabled) { background: var(--lg-navy-600); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(12, 36, 119, .32); }
.lg__btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(12, 36, 119, .25); }
.lg__btn:disabled { cursor: progress; opacity: .85; }
.lg__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lgSpin .7s linear infinite; }
.lg__btn.is-busy .lg__spinner { display: inline-block; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg__alt { margin-top: 22px; font-size: 13px; color: var(--lg-muted); text-align: center; }
.lg__alt a { color: var(--lg-navy); font-weight: 500; text-decoration: none; }
.lg__alt a:hover { text-decoration: underline; }
.lg__qr { margin: 18px auto 0; width: max-content; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e6e9f2; }
.lg__qr svg, .lg__qr img { display: block; width: 180px; height: 180px; }
.lg__info { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e9f2; font-size: 14px; line-height: 1.6; color: #3a4256; }
.lg__info b { color: var(--lg-text); }

@media (max-width: 900px) {
  body.lg { grid-template-columns: 1fr; }
  .lg__brand { display: none; }
  .lg__logoSm { display: block; }
}
@media (prefers-reduced-motion: reduce) { .lg__ticker, .lg__spinner { animation: none; } .lg__btn { transition: none; } }
