/* Giriş ekranı: masaüstünde iki bölme (marka | form), telefonda tek sütun */
:root {
  --lg-koyu: #111a2b;
  --lg-koyu-2: #1b2b4b;
  --lg-vurgu: #3b7cff;
  --lg-vurgu-koyu: #2a63d6;
  --lg-metin: #1f2a37;
  --lg-soluk: #6b7685;
  --lg-cizgi: #dfe4ec;
}

html, body { height: 100%; }
.lg-body {
  margin: 0;
  background: #f4f6f9;
  color: var(--lg-metin);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.lg-wrap { display: flex; min-height: 100vh; min-height: 100dvh; }

/* ───────── Marka paneli ───────── */
.lg-brand {
  position: relative;
  overflow: hidden;
  flex: 0 0 46%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  color: #c9d3e3;
  background:
    radial-gradient(circle at 85% 10%, rgba(59, 124, 255, .35) 0, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(59, 124, 255, .18) 0, transparent 40%),
    linear-gradient(160deg, var(--lg-koyu-2) 0%, var(--lg-koyu) 60%);
}
.lg-brand::after {
  /* ince ızgara deseni */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.lg-brand > * { position: relative; z-index: 1; }

.lg-brand-ust { display: flex; flex-direction: column; gap: .2rem; }
.lg-urun { color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.lg-firma { font-size: .8rem; color: #8fa0bd; letter-spacing: .02em; }
.lg-logo { display: block; width: 150px; height: auto; margin-bottom: 1.5rem; }

.lg-slogan { color: #fff; font-size: 2.4rem; font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
.lg-aciklama { max-width: 30rem; line-height: 1.6; margin-bottom: 1.5rem; }
.lg-aciklama strong { color: #fff; font-weight: 600; }
.lg-ozellik { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lg-ozellik li { display: flex; align-items: center; gap: .6rem; }
.lg-ozellik span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: rgba(59, 124, 255, .2); color: #8db4ff; font-size: .75rem; font-weight: 700;
}

.lg-brand-alt { font-size: .85rem; color: #8fa0bd; }
.lg-gun { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────── Form ───────── */
.lg-form-alan {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.lg-kart { width: 100%; max-width: 400px; }
.lg-kart-bas h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 .35rem; }
.lg-kart-bas p { color: var(--lg-soluk); margin: 0 0 1.75rem; }

.lg-hata:empty, .lg-hata.validation-summary-valid { display: none; }
.lg-hata {
  background: #fdecec; color: #b42318; border: 1px solid #f6caca;
  border-radius: .6rem; padding: .65rem .85rem; font-size: .9rem; margin-bottom: 1rem;
}
.lg-hata ul { margin: 0; padding: 0; list-style: none; }

.lg-alan { margin-bottom: 1.1rem; }
.lg-alan label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.lg-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--lg-cizgi);
  border-radius: .7rem;
  overflow: hidden; /* otomatik doldurma zemini yuvarlak köşeden taşmasın */
  transition: border-color .15s, box-shadow .15s;
}
.lg-input:focus-within { border-color: var(--lg-vurgu); box-shadow: 0 0 0 .2rem rgba(59, 124, 255, .15); }
.lg-input.hatali, .lg-input:has(.input-validation-error) { border-color: #e5484d; }
.lg-input > svg {
  flex: 0 0 auto; width: 18px; height: 18px; margin-left: .9rem;
  fill: none; stroke: #98a2b3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.lg-input input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: .8rem .85rem;
  font-size: 16px; /* iOS'ta odaklanınca yakınlaştırmasın */
  color: var(--lg-metin);
}
.lg-input input::placeholder { color: #a7b0bf; }
/* Tarayıcının otomatik doldurma (kayıtlı şifre) mavi arka planı kutunun beyazıyla ezilir */
.lg-input input:-webkit-autofill,
.lg-input input:-webkit-autofill:hover,
.lg-input input:-webkit-autofill:focus,
.lg-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--lg-metin);
  caret-color: var(--lg-metin);
  transition: background-color 9999s ease-out 0s;
}
.lg-input input:autofill { background: #fff; }
.lg-goz {
  flex: 0 0 auto; border: 0; background: transparent;
  width: 2.75rem; height: 2.75rem; margin-right: .1rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .5rem; cursor: pointer;
}
.lg-goz svg { width: 18px; height: 18px; fill: none; stroke: #98a2b3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-goz:hover svg, .lg-goz.acik svg { stroke: var(--lg-vurgu); }
.lg-alan-hata { display: block; color: #d92d20; font-size: .82rem; margin-top: .3rem; }
.lg-alan-hata:empty { display: none; }
.lg-caps { color: #b54708; font-size: .8rem; margin-top: .3rem; }

.lg-hatirla { display: inline-flex; align-items: center; gap: .55rem; margin: .2rem 0 1.4rem; cursor: pointer; user-select: none; font-size: .92rem; }
.lg-hatirla input { width: 1.1rem; height: 1.1rem; accent-color: var(--lg-vurgu); cursor: pointer; }

.lg-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: .7rem;
  padding: .85rem 1rem;
  font-size: 1rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #4a87ff, var(--lg-vurgu-koyu));
  box-shadow: 0 .5rem 1.2rem rgba(59, 124, 255, .3);
  transition: transform .1s, box-shadow .15s, opacity .15s;
}
.lg-btn:hover { box-shadow: 0 .6rem 1.4rem rgba(59, 124, 255, .4); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:disabled { opacity: .75; cursor: wait; }

.lg-telif { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: #7584a0; }
.lg-footer { display: none; margin-top: 2.5rem; text-align: center; font-size: .78rem; color: var(--lg-soluk); line-height: 1.6; }

/* ───────── Tablet: marka paneli daralır ───────── */
@media (max-width: 1100px) {
  .lg-brand { flex-basis: 42%; padding: 2rem; }
  .lg-slogan { font-size: 2rem; }
}

/* ───────── Telefon: tek sütun, marka paneli kısa başlık ───────── */
@media (max-width: 860px) {
  .lg-wrap { flex-direction: column; }
  .lg-brand {
    flex: 0 0 auto;
    max-width: none;
    padding: calc(1.5rem + env(safe-area-inset-top)) 1.25rem 3.25rem;
    gap: 1.25rem;
  }
  .lg-brand-orta .lg-ozellik, .lg-aciklama { display: none; }
  .lg-slogan { font-size: 1.6rem; margin: 0; }
  .lg-brand-alt { display: none; }

  .lg-form-alan {
    justify-content: flex-start;
    padding: 0 1rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  /* Form kartı, başlık panelinin üzerine biner */
  .lg-kart {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 .75rem 2rem rgba(17, 26, 43, .12);
  }
  .lg-kart-bas h2 { font-size: 1.35rem; }
  .lg-kart-bas p { margin-bottom: 1.25rem; font-size: .92rem; }
  .lg-footer { display: block; margin-top: 1.5rem; }
}

@media (max-width: 860px) {
  .lg-logo { width: 120px; margin: 0 auto 1.1rem; }
  .lg-kart-bas { text-align: center; }
  .lg-urun { font-size: 1.15rem; }
}

@media (max-width: 360px) {
  .lg-logo { width: 100px; }
  .lg-slogan { font-size: 1.35rem; }
}
