/* ==========================================================================
   Giriş ekranları — R16 (ilk tasarım) → R31 (kullanıcının gönderdiği son tasarımlara göre yeniden çizildi)
   · CAST PANELİ (profil/login.php + profil/core/kimlik.php: giriş · şifre unuttum · bağlantı gönderildi · yeni şifre): body.st-giris.cast-giris
     Açık, monokrom, ince çerçeveli sayfa; solda üç basamaklı siyah-beyaz portre + serif slogan, sağda form (kicker · başlık · alanlar · kayıt · alt satır).
     Koyu tema: aynı yerleşim, ters renkler (tema düğmesi üst çubukta).
   · YÖNETİM PANELİ (panel/login.php): body.st-giris.panel-giris
     Ortalanmış "story." logosu + serif "Hoş geldiniz." + tek satır slogan + form; arkada stüdyo fonu (açık / koyu). Fotoğraf yuvası: panel/assets/images/login/arka-acik.webp ·
     arka-koyu.webp (yoksa studyo-acik.svg / studyo-koyu.svg yedek çizimi kullanılır).
   Slogan / başlık yazı tipi: Instrument Serif (yalnız giriş ekranlarının sloganı ve panel girişinin "Hoş geldiniz." başlığı; platformun her yerinde tek yazı tipi Arimo kalır).
   Tema: html[data-theme="light" | "dark"] (story-theme.js; Sistem seçilince betik işletim sistemi temasına göre ayarlar).
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/story/instrument-serif-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/story/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.st-giris {
	--g-bg: #ffffff; --g-fg: #0b0b0c; --g-mut: #6c6c72; --g-line: #0b0b0c; --g-soft: #e4e4e7; --g-cerceve: #3c3c40;
	--g-field: #fbfbfc; --g-field-line: #d2d2d7; --g-field-fg: #0b0b0c; --g-ph: #8a8a91;
	--g-btn: #0b0b0c; --g-btn-fg: #ffffff; --g-btn-hover: #26262a; --g-ring: rgba(11, 11, 12, .14);
	--g-slogan: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
	display: block; height: auto; min-height: 100vh; padding: 0; background: var(--g-bg); color: var(--g-fg);
}
html:has(> body.st-giris) { background: #ffffff; }
html[data-theme="dark"]:has(> body.st-giris) { background: #0b0b0c; }
html[data-theme="dark"] body.st-giris {
	--g-bg: #0b0b0c; --g-fg: #f4f1ea; --g-mut: #a0a0a7; --g-line: #3a3a3f; --g-soft: #2a2a2e; --g-cerceve: #3a3a3f;
	--g-field: #141416; --g-field-line: #34343a; --g-field-fg: #f4f1ea; --g-ph: #7b7b83;
	--g-btn: #f4f1ea; --g-btn-fg: #0b0b0c; --g-btn-hover: #ffffff; --g-ring: rgba(244, 241, 234, .18);
}
body.st-giris .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ======================= ORTAK: üst çubuk · dil · tema · form bileşenleri ======================= */
body.st-giris .stg-ad { font-size: 13px; font-weight: 700; letter-spacing: .36em; text-transform: uppercase; color: var(--g-fg); text-decoration: none; white-space: nowrap; }
body.st-giris .stg-ad:hover, body.st-giris .stg-ad:focus { color: var(--g-fg); text-decoration: none; opacity: .75; }
body.st-giris .stg-ust { display: flex; align-items: center; gap: 10px; }
body.st-giris .stg-ust .st-lang { padding: 2px; background: transparent; border: 1px solid var(--g-field-line); }
body.st-giris .stg-ust .st-lang a { position: relative; min-width: 46px; height: 28px; font-size: 12px; color: var(--g-mut); }
body.st-giris .stg-ust .st-lang a::after, body.panel-giris .stg-p-ust .st-lang a::after { content: ""; position: absolute; inset: -7px -1px; }   /* görünür boy 28 px; dokunma alanı ≥ 40 px */
body.st-giris .stg-ust .st-lang a:hover { background: var(--g-soft); color: var(--g-fg); }
body.st-giris .stg-ust .st-lang a.on { background: var(--g-fg); color: var(--g-bg); }
body.st-giris .stg-ust .st-tema-btn { width: 40px; height: 40px; color: var(--g-fg); border-color: transparent; background: transparent; }
body.st-giris .stg-ust .st-tema-btn:hover, body.st-giris .stg-ust .st-tema.acik .st-tema-btn { background: var(--g-soft); color: var(--g-fg); }
body.st-giris .stg-ust .st-tema-btn .st-i { width: 22px; height: 22px; stroke-width: 1.5; }

body.st-giris .stg-kart { width: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.st-giris .errors-container { padding: 0; margin: 0; }
body.st-giris .login-form { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.st-giris .stg-kicker { margin: 0 0 clamp(8px, 1.4vh, 12px); font-size: 12px; font-weight: 400; letter-spacing: .34em; color: var(--g-mut); }
body.st-giris .login-form .login-header { margin: 0 0 clamp(22px, 3.6vh, 34px); text-align: left; }
body.st-giris .login-form .login-header h1.st-login-baslik { margin: 0; font-size: clamp(36px, 3.5vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; color: var(--g-fg); }
body.st-giris .login-form .login-header p.st-login-alt { margin: clamp(8px, 1.4vh, 12px) 0 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.4; color: var(--g-mut); }
body.st-giris .login-form .form-group { margin: 0 0 18px; }
body.st-giris .login-form .form-group .control-label { display: block; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 700; color: var(--g-fg); }
body.st-giris .stg-alan { position: relative; }
body.st-giris .stg-ik { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--g-mut); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
body.st-giris .stg-alan:focus-within .stg-ik { stroke: var(--g-fg); }
body.st-giris .login-form .form-group .form-control,
body.st-giris .login-form .form-group .form-control.input-dark { height: 48px; padding: 10px 46px 10px 44px; background: var(--g-field); color: var(--g-field-fg); border: 1px solid var(--g-field-line); border-radius: 8px; box-shadow: none; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
body.st-giris .login-form .form-group .form-control::placeholder, body.st-giris .login-form .form-group .form-control.input-dark::placeholder, body.st-giris .login-form .form-group .form-control.input-dark::-webkit-input-placeholder { color: var(--g-ph) !important; opacity: 1; }
body.st-giris .login-form .form-group .form-control:focus { border-color: var(--g-fg); box-shadow: 0 0 0 4px var(--g-ring); outline: 0; }
body.st-giris .login-form .form-group .form-control:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--g-field) inset; -webkit-text-fill-color: var(--g-field-fg); caret-color: var(--g-field-fg); }
body.st-giris .stg-goz { position: absolute; right: 5px; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: var(--g-mut); cursor: pointer; transition: background .15s, color .15s; }
body.st-giris .stg-goz:hover { background: var(--g-soft); color: var(--g-fg); }
body.st-giris .stg-goz svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.st-giris .stg-goz.acik { color: var(--g-fg); }
body.st-giris .stg-goz .stg-goz-gizle { display: none; } body.st-giris .stg-goz.acik .stg-goz-gizle { display: inline; } body.st-giris .stg-goz.acik .stg-goz-goster { display: none; }
body.st-giris .stg-yardim { display: flex; justify-content: flex-end; margin: 0; }
body.st-giris .stg-unuttum { padding: 10px 0; background: transparent; border: 0; font-size: 15px; font-weight: 500; color: var(--g-mut); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: currentColor; cursor: pointer; }
body.st-giris .stg-unuttum:hover { color: var(--g-fg); }
body.st-giris .login-form .stg-gonder { margin: 22px 0 0; }
body.st-giris .login-form .btn-block { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; margin: 0; padding: 0 22px; background: var(--g-btn); border: 0; border-radius: 8px; color: var(--g-btn-fg); font-size: 16px; font-weight: 700; letter-spacing: .005em; box-shadow: none; transition: background .15s, transform .15s; }
body.st-giris .login-form .btn-block:hover, body.st-giris .login-form .btn-block:focus { background: var(--g-btn-hover); color: var(--g-btn-fg); }
body.st-giris .login-form .btn-block:active { transform: translateY(1px); }
body.st-giris .login-form .btn-block:focus-visible { outline: 3px solid var(--g-ring); outline-offset: 2px; }
body.st-giris .login-form .btn-block[disabled] { opacity: .65; cursor: progress; }
body.st-giris .login-form .btn-block svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
body.st-giris .login-form .btn-block:hover svg { transform: translateX(3px); }
body.st-giris .g-recaptcha { margin-top: 16px; }
body.st-giris .stg-ipucu { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--g-mut); }
body.st-giris .stg-captcha { margin: 0 0 16px; }
body.st-giris .stg-hata { margin: 4px 0 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #b3261e; background: #fcebe9; border: 1px solid #e9b4b0; border-radius: 8px; }
html[data-theme="dark"] body.st-giris .stg-hata { color: #ff8a80; background: #2c1614; border-color: #5c2a26; }
body.st-giris .stg-hata[hidden] { display: none; }
body.st-giris .login-form .form-control.bad { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .14); }
body.st-giris .stg-kayit-not { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; font-size: 16px; color: var(--g-fg); }
body.st-giris .stg-kayit-not svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.st-giris .stg-kayit-not a { color: var(--g-fg); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: currentColor; }
body.st-giris .stg-kayit-not a:hover { opacity: .75; }
body.st-giris .stg-alt { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin: clamp(26px, 5vh, 44px) 0 0; padding-top: 18px; border-top: 1px solid var(--g-line); font-size: 13.5px; color: var(--g-mut); }
body.st-giris .stg-alt span { min-width: 0; overflow-wrap: anywhere; }
body.st-giris .toast-top-full-width { top: 12px; }

/* ======================= CAST PANELİ ======================= */
body.cast-giris .stg-sayfa { --g-cerceve-pay: 18px; position: relative; display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; min-height: 100vh; padding: calc(var(--g-cerceve-pay) + 10px) max(calc(var(--g-cerceve-pay) + clamp(22px, 3.2vw, 52px)), calc((100vw - 1500px) / 2)) calc(var(--g-cerceve-pay) + 40px); }   /* alt pay: sol alttaki "Çerez Tercihleri" düğmesi sloganı örtmesin */
body.cast-giris .stg-sayfa::before { content: ""; position: absolute; inset: var(--g-cerceve-pay); border: 1px solid var(--g-cerceve); pointer-events: none; }
body.cast-giris .stg-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 10px; border-bottom: 1px solid var(--g-line); }
body.cast-giris .stg-sol { grid-column: 1; grid-row: 2; position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 2vh, 20px); min-width: 0; padding: clamp(22px, 4.6vh, 56px) clamp(16px, 2.9vw, 46px) clamp(22px, 4vh, 44px); }
body.cast-giris .stg-ana { grid-column: 2; grid-row: 2; position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: clamp(24px, 4.4vh, 56px) clamp(16px, 2.9vw, 46px) 8px 0; }
body.cast-giris .stg-kart, body.cast-giris .stg-alt { width: 100%; max-width: 520px; margin-left: auto; }
body.cast-giris .stg-alt { margin-top: clamp(26px, 5vh, 44px); }

/* vitrin: üç basamaklı portre (kadın · erkek · çocuk) */
body.cast-giris .stg-vitrin { position: relative; width: min(100%, 762px, calc((100vh - 330px) * 1.6)); min-width: min(100%, 420px); aspect-ratio: 762 / 476; }
body.cast-giris .stg-foto { position: absolute; margin: 0; overflow: hidden; background: #d9d9dc; }
body.cast-giris .stg-foto img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
body.cast-giris .stg-foto-1 { left: 0; top: 0; width: 34.9%; height: 88.7%; }
body.cast-giris .stg-foto-1 img { object-position: 50% 14%; }
body.cast-giris .stg-foto-2 { left: 36.9%; top: 5.3%; width: 31%; height: 89.3%; }
body.cast-giris .stg-foto-2 img { object-position: 50% 16%; }
body.cast-giris .stg-foto-3 { left: 69.8%; top: 17.2%; width: 30.2%; height: 82.8%; }
body.cast-giris .stg-foto-3 img { object-position: 50% 24%; }
body.cast-giris .stg-foto-3.stg-foto-yedek img { object-position: 22% 30%; }
html[data-theme="dark"] body.cast-giris .stg-foto { background: #1a1a1d; }
body.cast-giris .stg-dikey { display: none; }

/* slogan */
body.cast-giris .stg-slogan { min-width: 0; }
body.cast-giris .stg-etiket { margin: 0 0 clamp(6px, 1.2vh, 12px); font-size: 12px; font-weight: 400; letter-spacing: .34em; color: var(--g-mut); }
body.cast-giris .stg-baslik { margin: 0; font-family: var(--g-slogan); font-size: clamp(34px, 4.9vw, 82px); line-height: 1.02; font-weight: 400; letter-spacing: -.018em; color: var(--g-fg); text-wrap: balance; }

/* ======================= YÖNETİM PANELİ ======================= */
body.panel-giris { --g-field: rgba(255, 255, 255, .62); --g-field-line: rgba(11, 11, 12, .16); --g-ph: #6c6c72; background: #ffffff; }
html[data-theme="dark"] body.panel-giris { --g-field: rgba(18, 18, 20, .6); --g-field-line: rgba(244, 241, 234, .22); --g-ph: #a0a0a7; background: #1c1d1f; }
html[data-theme="dark"]:has(> body.panel-giris) { background: #1c1d1f; }
body.panel-giris .stg-p { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: clamp(34px, 7.5vh, 84px) max(16px, env(safe-area-inset-right, 0px)) 22px max(16px, env(safe-area-inset-left, 0px)); }
body.panel-giris .stg-p-arka { position: fixed; inset: 0; z-index: -1; background: var(--arka-acik) 50% 100% / cover no-repeat, #ffffff; }
html[data-theme="dark"] body.panel-giris .stg-p-arka { background: var(--arka-koyu) 50% 100% / cover no-repeat, #1c1d1f; }
body.panel-giris .stg-p-ust { position: absolute; top: clamp(14px, 3vh, 26px); right: max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-right, 0px)); z-index: 3; display: flex; align-items: center; gap: 10px; }
body.panel-giris .stg-p-ust .st-lang { padding: 2px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(11, 11, 12, .12); backdrop-filter: blur(6px); }
html[data-theme="dark"] body.panel-giris .stg-p-ust .st-lang { background: rgba(24, 24, 26, .6); border-color: rgba(244, 241, 234, .2); }
body.panel-giris .stg-p-ust .st-lang a { position: relative; min-width: 38px; height: 28px; font-size: 11px; color: #4a4a50; }
html[data-theme="dark"] body.panel-giris .stg-p-ust .st-lang a { color: #c4c4ca; }
body.panel-giris .stg-p-ust .st-lang a:hover { background: rgba(11, 11, 12, .07); color: #0b0b0c; }
html[data-theme="dark"] body.panel-giris .stg-p-ust .st-lang a:hover { background: rgba(244, 241, 234, .12); color: #fff; }
body.panel-giris .stg-p-ust .st-lang a.on { background: #0b0b0c; color: #ffffff; }
html[data-theme="dark"] body.panel-giris .stg-p-ust .st-lang a.on { background: #f4f1ea; color: #0b0b0c; }
body.panel-giris .stg-tema-tek { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(11, 11, 12, .1); background: rgba(255, 255, 255, .82); color: #0b0b0c; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgba(11, 11, 12, .06); transition: background .15s, transform .15s; }
body.panel-giris .stg-tema-tek:hover { background: #ffffff; }
body.panel-giris .stg-tema-tek:active { transform: scale(.96); }
body.panel-giris .stg-tema-tek:focus-visible { outline: 3px solid var(--g-ring); outline-offset: 2px; }
html[data-theme="dark"] body.panel-giris .stg-tema-tek { background: rgba(60, 60, 64, .72); border-color: rgba(244, 241, 234, .18); color: #f4f1ea; box-shadow: none; }
html[data-theme="dark"] body.panel-giris .stg-tema-tek:hover { background: rgba(84, 84, 90, .8); }
body.panel-giris .stg-tema-tek svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.panel-giris .stg-tema-tek .stg-t-gunes { display: none; } html[data-theme="dark"] body.panel-giris .stg-tema-tek .stg-t-gunes { display: block; } html[data-theme="dark"] body.panel-giris .stg-tema-tek .stg-t-ay { display: none; }

body.panel-giris .stg-p-ana { position: relative; width: 100%; max-width: 420px; min-width: 0; margin: 0 auto; text-align: center; }
body.panel-giris .stg-p-logo { display: block; width: clamp(124px, 11.5vw, 172px); height: auto; margin: 0 auto 8px; }
body.panel-giris .stg-p-logo-k { display: none; }
html[data-theme="dark"] body.panel-giris .stg-p-logo-a { display: none; } html[data-theme="dark"] body.panel-giris .stg-p-logo-k { display: block; }
body.panel-giris .stg-kart { max-width: none; }
body.panel-giris .login-form .login-header { margin: 0 0 clamp(22px, 3.6vh, 34px); text-align: center; }
body.panel-giris .stg-kicker { margin: 0 0 clamp(14px, 2.4vh, 22px); font-size: 12px; letter-spacing: .34em; color: var(--g-fg); padding-left: .34em; }
body.st-giris.panel-giris .login-form .login-header h1.st-login-baslik { font-family: var(--g-slogan); font-weight: 400; font-size: clamp(42px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
body.st-giris.panel-giris .login-form .login-header p.st-login-alt { max-width: 34ch; margin: clamp(10px, 1.8vh, 16px) auto 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--g-fg); opacity: .78; text-wrap: balance; }
body.panel-giris .login-form .form-group { margin: 0 0 12px; text-align: left; }
body.panel-giris .login-form .form-group .form-control,
body.panel-giris .login-form .form-group .form-control.input-dark { height: 50px; padding: 10px 48px 10px 16px; backdrop-filter: blur(6px); }
body.panel-giris .login-form label.error, body.panel-giris .login-form .validate-has-error ~ .error { display: none !important; }   /* jQuery Validate etiketleri kullanılmaz: hata iletisi #giris_hata kutusunda */
body.panel-giris .stg-p-hatirla { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; text-align: left; }
body.panel-giris .stg-p-hatirla input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
body.panel-giris .stg-p-hatirla .kutu { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid var(--g-fg); border-radius: 4px; background: transparent; color: var(--g-bg); transition: background .12s; }
body.panel-giris .stg-p-hatirla .kutu svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
body.panel-giris .stg-p-hatirla .kutu { pointer-events: none; }   /* görünen kutuya tıklama alttaki gerçek onay kutusuna ulaşsın (kutu simgesi tıklamayı yutuyordu) */
body.panel-giris .stg-p-hatirla input:checked + .kutu { background: var(--g-fg); }
body.panel-giris .stg-p-hatirla input:checked + .kutu svg { opacity: 1; }
body.panel-giris .stg-p-hatirla input:focus-visible + .kutu { outline: 3px solid var(--g-ring); outline-offset: 2px; }
body.panel-giris .stg-p-hatirla label { margin: 0; padding: 10px 0; font-size: 14px; font-weight: 400; color: var(--g-fg); cursor: pointer; }
body.panel-giris .stg-p-hatirla { position: relative; }
body.panel-giris .login-form .stg-gonder { margin: 14px 0 0; }
body.panel-giris .login-form .btn-block { justify-content: center; height: 52px; }
body.st-giris.login-page .login-form .form-group .btn.btn-block { background: var(--g-btn); border-color: var(--g-btn); color: var(--g-btn-fg); }   /* tema dosyasındaki .btn-dark vurgu rengi (daha özgül kural) ezilir: düğme rengi giriş jetonlarından gelir */
body.st-giris.login-page .login-form .form-group .btn.btn-block:hover, body.st-giris.login-page .login-form .form-group .btn.btn-block:focus { background: var(--g-btn-hover); border-color: var(--g-btn-hover); color: var(--g-btn-fg); }
html[data-theme="dark"] body.panel-giris { --g-btn: #ffffff; --g-btn-hover: #ececee; }   /* tasarım: yönetim paneli girişinde koyu temada düğme saf beyaz */
body.panel-giris .login-form .btn-block svg { position: absolute; right: 22px; top: 50%; margin-top: -10px; }
body.panel-giris .login-form .btn-block:hover svg { transform: translateX(3px); }
body.panel-giris .stg-p-alt { margin: auto 0 0; padding-top: clamp(26px, 5vh, 44px); font-size: 14px; color: var(--g-mut); text-align: center; }
html:not([data-theme="dark"]) body.panel-giris .stg-p-alt { color: #4a4a50; }

/* ======================= şifre sayfaları (profil/core/kimlik.php): giriş ekranıyla AYNI kabuk ======================= */
body.st-giris .kk-kutu .kk-bas { margin: 0 0 clamp(20px, 3.4vh, 32px); }
body.st-giris .kk-kutu .kk-bas h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; color: var(--g-fg); text-transform: none; }
body.st-giris .kk-kutu .kk-bas p { max-width: 46ch; margin: clamp(8px, 1.6vh, 14px) 0 0; font-size: 16px; line-height: 1.5; color: var(--g-mut); }
body.st-giris .kk-kutu .kk-rozet { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 0 18px; border-radius: 50%; background: var(--g-btn); color: var(--g-btn-fg); }
body.st-giris .kk-kutu .kk-rozet.uyari { background: #fcf0d3; color: #8f5f00; border: 1px solid #8f5f00; }
body.st-giris .kk-kutu .kk-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.st-giris .kk-kutu .kk-rozet .kk-i { width: 24px; height: 24px; }
body.st-giris .kk-f { margin: 0 0 18px; min-width: 0; }
body.st-giris .kk-f > label { display: block; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 700; color: var(--g-fg); }
body.st-giris .kk-f input[type=text], body.st-giris .kk-f input[type=email], body.st-giris .kk-f input[type=password] { display: block; width: 100%; height: 48px; margin: 0; padding: 10px 16px; background: var(--g-field); color: var(--g-field-fg); border: 1px solid var(--g-field-line); border-radius: 8px; box-shadow: none; font-size: 15px; line-height: 1.3; transition: border-color .15s, box-shadow .15s; }
body.st-giris .kk-f input::placeholder { color: var(--g-ph); }
body.st-giris .kk-f input:focus { outline: 0; border-color: var(--g-fg); box-shadow: 0 0 0 4px var(--g-ring); }
body.st-giris .kk-f input.bad { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .14); }
body.st-giris .kk-ipucu { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--g-mut); }
body.st-giris .kk-sifre { position: relative; }
body.st-giris .kk-sifre input { padding-right: 52px !important; }
body.st-giris .kk-goz { position: absolute; right: 5px; top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: var(--g-mut); cursor: pointer; }
body.st-giris .kk-goz:hover { background: var(--g-soft); color: var(--g-fg); }
body.st-giris .kk-goz .kk-goz-gizle { display: none; } body.st-giris .kk-goz[aria-pressed="true"] .kk-goz-gizle { display: inline; } body.st-giris .kk-goz[aria-pressed="true"] .kk-goz-goster { display: none; }
body.st-giris .kk-guc-satir { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
body.st-giris .kk-guc { display: flex; flex: 1 1 auto; gap: 4px; } body.st-giris .kk-guc i { flex: 1; height: 4px; border-radius: 2px; background: var(--g-soft); transition: background-color .2s; }
body.st-giris .kk-guc[data-s="1"] i:nth-child(-n+1) { background: #b3261e; } body.st-giris .kk-guc[data-s="2"] i:nth-child(-n+2) { background: #c98a00; } body.st-giris .kk-guc[data-s="3"] i:nth-child(-n+3), body.st-giris .kk-guc[data-s="4"] i { background: #187a41; }
body.st-giris .kk-guc-ad { flex: 0 0 auto; min-width: 2.8em; font-size: 12px; font-weight: 700; text-align: right; color: var(--g-mut); }
body.st-giris .kk-captcha { margin: 0 0 16px; }
body.st-giris .kk-hata, body.st-giris .kk-ok { margin: 4px 0 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #b3261e; background: #fcebe9; border: 1px solid #e9b4b0; border-radius: 8px; overflow-wrap: anywhere; }
body.st-giris .kk-ok { color: #187a41; background: #e5f4ea; border-color: #a8d5b8; }
html[data-theme="dark"] body.st-giris .kk-hata { color: #ff8a80; background: #2c1614; border-color: #5c2a26; }
html[data-theme="dark"] body.st-giris .kk-ok { color: #5fd39a; background: #14271e; border-color: #24503a; }
body.st-giris .kk-hata[hidden], body.st-giris .kk-ok[hidden] { display: none; }
body.st-giris .kk-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 54px; margin: 4px 0 0; padding: 0 22px; background: var(--g-btn); border: 0; border-radius: 8px; color: var(--g-btn-fg); font-size: 16px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
body.st-giris .kk-btn:hover, body.st-giris .kk-btn:focus { background: var(--g-btn-hover); color: var(--g-btn-fg); text-decoration: none; }
body.st-giris .kk-btn[disabled] { opacity: .55; cursor: not-allowed; }
body.st-giris .kk-btn.hafif { background: transparent; border: 1px solid var(--g-field-line); color: var(--g-fg); }
body.st-giris .kk-btn.hafif:hover { background: var(--g-soft); color: var(--g-fg); }
body.st-giris .kk-alt-not { margin: 6px 0 0; font-size: 14px; color: var(--g-mut); }
body.st-giris .kk-alt-not a { display: inline-block; padding: 10px 0; color: var(--g-fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; }
body.st-giris .kk-alt-not a:hover { opacity: .75; }

/* alan ipucu (cast girişi): tasarımda yok → yalnız alan odaktayken açılır (ekran okuyucuya her zaman açık) */
body.cast-giris .login-form .form-group .stg-ipucu { max-height: 0; margin: 0; overflow: hidden; opacity: 0; transition: max-height .2s, opacity .2s, margin .2s; }
body.cast-giris .login-form .form-group:focus-within .stg-ipucu { max-height: 3.2em; margin-top: 8px; opacity: 1; }

/* ======================= dar ekran: tek sütun ======================= */
@media (max-width: 900px) {
	body.cast-giris .stg-sayfa { display: block; padding: 18px clamp(18px, 5.6vw, 32px) 84px; }   /* alt pay: yüzen "Çerez Tercihleri" + Cast Asistanı düğmeleri alt satırı örtmesin */
	body.cast-giris .stg-sayfa::before { display: none; }
	body.cast-giris .stg-bar { padding: 0 0 14px; }
	body.cast-giris .stg-sol { padding: 22px 0 6px; gap: 18px; }
	body.cast-giris .stg-vitrin { width: 100%; min-width: 0; aspect-ratio: 708 / 282; }   /* dar ekran: üç portre yan yana şerit (üçüncüsü biraz aşağıda) */
	body.cast-giris .stg-foto-1 { left: 0; top: 0; width: 32.9%; height: 100%; }
	body.cast-giris .stg-foto-2 { left: 35.2%; top: 0; width: 30.8%; height: 100%; }
	body.cast-giris .stg-foto-3 { left: 68.4%; top: 6.8%; width: 31.6%; height: 93.2%; }
	body.cast-giris .stg-baslik { font-size: clamp(34px, 8.4vw, 56px); }
	body.cast-giris .stg-ana { max-width: none; padding: 22px 0 6px; }
	body.cast-giris .stg-kart, body.cast-giris .stg-alt { max-width: none; margin-left: 0; }
	body.st-giris .login-form .login-header h1.st-login-baslik { font-size: clamp(36px, 9.6vw, 52px); }
}
@media (max-width: 600px) {
	body.cast-giris .stg-sol { padding: 20px 0 0; gap: 0; }
	body.cast-giris .stg-slogan { display: none; }
	body.cast-giris .stg-ana { padding-top: 26px; }
	body.st-giris .stg-ad { letter-spacing: .3em; font-size: 12.5px; }
}
@media (max-width: 600px) {
	body.panel-giris .stg-p { padding-top: 86px; }   /* üstteki dil + tema düğmeleri logoyu örtmesin */
}
@media (max-width: 480px) {
	body.st-giris .stg-ad { letter-spacing: .24em; font-size: 12px; }
	body.st-giris .stg-ust { gap: 6px; }
	body.panel-giris .stg-p-ust .st-lang a { min-width: 30px; }
}
@media (max-width: 360px) {
	body.st-giris .stg-ad { letter-spacing: .16em; font-size: 11px; }
	body.st-giris .stg-ust .st-lang a { min-width: 30px; padding: 0 6px; }
}
/* R31 ekran incelemesi (düzeltme): (1) üst yazı ("YÖNETİM PANELİ" / "CAST PANELİ") başka bir kuralla açık gri-mavi (#79808a ≈ 3.9:1) çıkıyordu → okunur koyu / açık ton (≥ 7:1 panel, ≥ 5:1 cast);
   (2) tasarımda yönetim girişi bloğu ekranın ~%70'ini kaplıyor (logo · başlık · form oransal büyük) → masaüstünde (≥ 1024 px) ölçek genişliğe göre büyür; mobil değişmez. */
body.st-giris.panel-giris .login-form .login-header p.stg-kicker { color: #2e2e33; font-weight: 500; opacity: 1; }
html[data-theme="dark"] body.st-giris.panel-giris .login-form .login-header p.stg-kicker { color: #dcd9d2; }
body.st-giris.cast-giris p.stg-kicker { color: #55555c; opacity: 1; }
html[data-theme="dark"] body.st-giris.cast-giris p.stg-kicker { color: #b9b9bf; }
@media (min-width: 1024px) {
	body.panel-giris .stg-p-ana { max-width: clamp(420px, 31vw, 500px); }
	body.panel-giris .stg-p-logo { width: clamp(160px, 12.4vw, 214px); margin-bottom: 14px; }
	body.panel-giris .stg-kicker { margin-bottom: clamp(18px, 2.8vh, 30px); }
	body.st-giris.panel-giris .login-form .login-header h1.st-login-baslik { font-size: clamp(52px, 4.8vw, 76px); }
	body.st-giris.panel-giris .login-form .login-header p.st-login-alt { margin-top: clamp(12px, 2vh, 20px); font-size: clamp(17px, 1.4vw, 22px); }
	body.panel-giris .login-form .login-header { margin-bottom: clamp(28px, 4.6vh, 48px); }
	body.panel-giris .login-form .form-group .form-control, body.panel-giris .login-form .form-group .form-control.input-dark { height: 54px; }
	body.panel-giris .login-form .btn-block { height: 54px; }
}
@media (prefers-reduced-motion: reduce) { body.st-giris * { transition: none !important; } }
