/* ============================================================
   SocialTag — panel giriş ekranları (v150)
   Yönetim (/admin), İşletme (/giris), Görevli (/gorevli).
   Yalnızca giriş görünürken geçerli: body.gm-setup. Görevli
   sayfasında giriş sonrası ekranı da .yon-giris sardığı için sınıf
   JS'le kaldırılır. Bilgisayarda ikiye bölünmüş ekran (solda vurgu
   renkli marka paneli, sağda form), telefonda üstte vurgu renkli başlık bloğu.
   ============================================================ */
body.gm-setup {
  /* v258: SocialTag tasarım dili: sıcak kâğıt zemin, lacivert-siyah mürekkep, marka paneli vurgu rengi (#2A1A8F, üstünde beyaz yazı).
     Ürün siyahı yalnızca fiziksel ürüne ayrılmıştır, giriş ekranlarında kullanılmaz. */
  --gm-siyah: #0B1020; --gm-vurgu: #2A1A8F; --gm-vurgu-koyu: #1F1470; --gm-kagit: #fff; --gm-soluk: rgba(255, 255, 255, .72);
  --gm-ton: #ECEAE3; --gm-cizgi: #DCDAD1; --gm-ikincil: #5A6075;
  --gm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #F6F4EF;
}
body.gm-setup.yon { background: #F6F4EF; }   /* panel2/yonetim.css'teki body.yon zeminini ezer */
body.gm-setup .yon-giris { display: block; min-height: 100vh; min-height: 100dvh; padding: 0; }
body.gm-setup .yon-giris-ic { width: 100%; max-width: none !important; min-height: inherit; display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; }

/* ---------- marka paneli ---------- */
.gm-marka { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 4vw, 56px); background: var(--gm-vurgu); color: #fff; overflow: hidden; isolation: isolate; }
/* logo işaretinin çemberleri, panelin sağ altında çok silik bir doku */
.gm-marka::before { content: ""; position: absolute; z-index: -1; right: -22%; bottom: -14%; width: 78%; aspect-ratio: 1; background: url(/assets/logo-isaret.svg) center / contain no-repeat; filter: invert(1); opacity: .07; pointer-events: none; }
.gm-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.gm-logo .gm-isaret { width: 36px; height: auto; filter: invert(1); }
.gm-logo .gm-yazi { height: 14px; width: auto; filter: brightness(0) invert(1); }
.gm-orta h1 { margin: 0; font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; max-width: 11ch; }
.gm-orta p { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--gm-soluk); max-width: 30ch; }
.gm-maddeler { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; font-weight: 600; }
.gm-maddeler li { display: flex; align-items: center; gap: 12px; }
.gm-maddeler li::before { content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: #fff; flex: none; }
.gm-alt { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gm-alt a { color: var(--gm-soluk); font-size: 14px; font-weight: 600; text-decoration: none; }
.gm-alt a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* ürünün kendi küçük arayüz parçası */
.gm-ornek { width: min(300px, 100%); padding: 14px; border-radius: 18px; background: #fff; color: var(--gm-siyah); font-size: 13.5px; line-height: 1.4; box-shadow: 0 18px 40px rgba(11, 16, 32, .22); } /* ürünün kendi arayüz parçası; taste-skill-ignore */
.gm-ornek-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gm-ikincil); }
.gm-ornek-bas b { color: var(--gm-siyah); font-size: 14px; }
.gm-ornek-satir { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; }
.gm-ornek-satir + .gm-ornek-satir { box-shadow: inset 0 1px 0 rgba(11, 16, 32, .08); } /* arayüzün kendi ayracı; taste-skill-ignore */
.gm-ornek-satir small { display: block; color: var(--gm-ikincil); font-size: 12.5px; }
.gm-rozet { align-self: center; padding: 3px 8px; border-radius: 6px; background: #0F8A5F; color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.gm-rozet.mavi { background: var(--gm-vurgu); }

/* ---------- form tarafı ---------- */
body.gm-setup .yon-giris .card { align-self: center; justify-self: center; width: min(420px, 100%); margin: 0; padding: clamp(28px, 5vw, 56px) 24px; background: transparent; border: 0; box-shadow: none; }
body.gm-setup .yon-giris h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; margin: 0 0 8px; }
body.gm-setup .yon-giris .yon-giris-alt { font-size: 15px; color: var(--gm-ikincil); margin: 0 0 28px; line-height: 1.5; }
body.gm-setup .yon-giris .field { margin-bottom: 16px; }
body.gm-setup .yon-giris .field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 650; color: var(--gm-siyah); }
body.gm-setup .yon-giris .field input[type="email"], body.gm-setup .yon-giris .field input[type="password"], body.gm-setup .yon-giris .field input[type="text"] {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--gm-cizgi); background: #fff; font-size: 16px; color: var(--gm-siyah);
  transition: border-color .18s ease, box-shadow .18s ease; /* form alanı; taste-skill-ignore */
}
body.gm-setup .yon-giris .field input:hover { border-color: #C4C1B6; }
body.gm-setup.yon .yon-giris .field input:focus { outline: none; border-color: var(--gm-vurgu) !important; box-shadow: 0 0 0 4px rgba(42, 26, 143, .14) !important; }   /* panel2.css'teki body.yon odak stilini ezer */ /* odak halkası; taste-skill-ignore */
body.gm-setup .yon-giris .hint { font-size: 13px; color: var(--gm-ikincil); margin-top: 6px; }
body.gm-setup .yon-giris .btn-primary { min-height: 54px; border-radius: 12px; background: var(--gm-vurgu); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; transition: background-color .18s ease, transform .14s var(--gm-ease); }
body.gm-setup .yon-giris .btn-primary:hover { background: var(--gm-vurgu-koyu); }
body.gm-setup .yon-giris .btn-primary:active { transform: scale(.98); }
body.gm-setup .yon-giris .btn-primary[disabled] { opacity: .6; }

/* şifreyi göster / gizle */
.gm-sifre { position: relative; }
.gm-sifre input { padding-right: 76px !important; }
.gm-goster { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--gm-ikincil); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.gm-goster:hover { background: var(--gm-ton); color: var(--gm-siyah); }

/* Beni hatırla: açma-kapama anahtarı */
body.gm-setup #beniHatirla { -webkit-appearance: none; appearance: none; width: 40px !important; height: 24px !important; flex: none; border-radius: 12px; background: #CFCCC1; position: relative; cursor: pointer; transition: background-color .2s ease; }
body.gm-setup #beniHatirla::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .22s var(--gm-ease); }
body.gm-setup #beniHatirla:checked { background: var(--gm-vurgu); }
body.gm-setup #beniHatirla:checked::after { transform: translateX(16px); }
body.gm-setup #beniHatirla:focus-visible { outline: 2px solid var(--gm-vurgu); outline-offset: 2px; }

/* ---------- telefon ---------- */
@media (max-width: 899px) {
  body.gm-setup .yon-giris-ic { display: block; }
  .gm-marka { gap: 22px; padding: 22px 20px 28px; border-radius: 0 0 28px 28px; }
  .gm-orta h1 { font-size: 30px; }
  .gm-orta p { font-size: 15px; margin-top: 10px; }
  .gm-maddeler, .gm-ornek, .gm-alt { display: none; }
  body.gm-setup .yon-giris .card { padding: 28px 20px calc(32px + env(safe-area-inset-bottom)); }
}

/* ---------- giriş hareketi: kısa, bir kez ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gm-marka > * { animation: gmGel .55s var(--gm-ease) both; }
  .gm-marka > :nth-child(2) { animation-delay: .06s; }
  .gm-marka > :nth-child(3) { animation-delay: .12s; }
  body.gm-setup .yon-giris .card > * { animation: gmGel .5s var(--gm-ease) both; }
  body.gm-setup .yon-giris .card > :nth-child(2) { animation-delay: .04s; }
  body.gm-setup .yon-giris .card > :nth-child(3) { animation-delay: .08s; }
  body.gm-setup .yon-giris .card > :nth-child(n+4) { animation-delay: .12s; }
  @keyframes gmGel { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
}
body:not(.gm-setup) .gm-marka { display: none; }
