/* =========================================================
   EFLİS GİRİŞ SAYFASI V2 (2026-10-10)
   Sol: kurumsal marka paneli + EFLİ. Sağ: rol kartları + giriş formu.
   Eski giriş katmanlarının üzerine yazar (en son yüklenir).
   ========================================================= */
:root{
  --lg-f:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --lg-ink:#0b3a67;--lg-sub:#5b7287;--lg-line:#d6e4ee;
  --lg-grad:radial-gradient(120% 140% at 100% 0%,rgba(106,85,232,.55),transparent 55%),linear-gradient(120deg,#0b3a67 0%,#1268a0 100%);
}
html body:has(#loginScreen.lg2:not(.hidden)){
  background:#0b3a67 url("/assets/login-bg.jpg?v=2") center/cover no-repeat fixed!important;min-height:100vh}
html body #loginScreen.lg2{
  position:relative!important;min-height:100vh!important;min-height:100dvh!important;display:grid!important;place-items:center!important;
  padding:28px!important;margin:0!important;box-sizing:border-box!important;background:none!important;font-family:var(--lg-f)!important;color:#17304d;grid-template-columns:minmax(0,1fr)!important}
html body #loginScreen.lg2.hidden{display:none!important}
html body #loginScreen.lg2::before{content:""!important;position:fixed!important;inset:0!important;z-index:0!important;display:block!important;
  background:linear-gradient(115deg,rgba(5,24,46,.42),rgba(5,24,46,.06) 58%,rgba(5,24,46,.30))!important;backdrop-filter:none}
html body #loginScreen.lg2::after{display:none!important}
html body #loginScreen.lg2 *{box-sizing:border-box}
html body #loginScreen.lg2>.lg-wrap{
  position:relative!important;z-index:1!important;width:min(1180px,100%)!important;max-width:none!important;margin:0!important;padding:0!important;
  display:grid!important;grid-template-columns:1.05fr 1fr!important;border-radius:28px!important;overflow:hidden!important;
  box-shadow:0 40px 90px rgba(4,22,44,.45)!important;background:#fff!important;border:0!important;backdrop-filter:none!important}

/* ---------- Marka paneli ---------- */
html body #loginScreen.lg2 .lg-brand{position:relative;background:var(--lg-grad);color:#fff;padding:44px 44px 36px;display:flex;flex-direction:column;min-height:600px;overflow:hidden}
html body #loginScreen.lg2 .lg-brand::after{content:"";position:absolute;right:-120px;bottom:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14),transparent 65%);pointer-events:none}
html body #loginScreen.lg2 .lg-b-top{display:flex;align-items:center;gap:16px;position:relative;z-index:2}
html body #loginScreen.lg2 img.lg-logo{content:normal!important;width:74px!important;height:74px!important;max-width:none!important;margin:0!important;flex:0 0 74px;
  border-radius:50%!important;background:#fff!important;padding:3px!important;border:2px solid rgba(255,255,255,.85)!important;box-shadow:0 8px 20px rgba(0,0,0,.25)!important;object-fit:contain!important;filter:none!important}
html body #loginScreen.lg2 .lg-kick{font:800 12px/1.2 var(--lg-f);letter-spacing:2px;opacity:.85}
html body #loginScreen.lg2 .lg-school{font:800 26px/1.1 var(--lg-f);letter-spacing:.3px;margin-top:3px}
html body #loginScreen.lg2 .lg-big{font:900 clamp(64px,7vw,88px)/.95 var(--lg-f);letter-spacing:-1px;margin:46px 0 8px;text-shadow:0 6px 24px rgba(0,0,0,.18);position:relative;z-index:2}
html body #loginScreen.lg2 .lg-tag{font:600 17px/1.45 var(--lg-f);opacity:.92;max-width:360px;position:relative;z-index:2}
html body #loginScreen.lg2 .lg-motto{margin-top:16px;font:italic 500 16px/1.4 Georgia,"Times New Roman",serif;opacity:.85;position:relative;z-index:2}
html body #loginScreen.lg2 .lg-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:26px;position:relative;z-index:2;max-width:380px}
html body #loginScreen.lg2 .lg-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);font:700 12.5px/1 var(--lg-f);white-space:nowrap}
html body #loginScreen.lg2 .lg-efli{position:absolute;right:22px;bottom:0;width:155px;height:310px;z-index:1;
  background:url("/assets/efli-maskot.webp") center bottom/contain no-repeat;filter:drop-shadow(0 18px 20px rgba(0,0,0,.25));
  animation:lgFloat 5s ease-in-out infinite;transform-origin:50% 100%}
@keyframes lgFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
html body #loginScreen.lg2 .lg-bubble{position:absolute;right:190px;bottom:150px;z-index:3;background:#fff;color:#17304d;border-radius:16px 16px 4px 16px;
  padding:11px 14px;font:600 13.5px/1.45 var(--lg-f);box-shadow:0 12px 30px rgba(0,0,0,.2);max-width:240px;transition:opacity .25s,transform .25s}
html body #loginScreen.lg2 .lg-bubble b{color:#1268a0}
html body #loginScreen.lg2 .lg-bubble.swap{opacity:0;transform:translateY(4px)}

/* ---------- Form ---------- */
html body #loginScreen.lg2 .lg-form{padding:40px 44px 30px;display:flex;flex-direction:column;background:#fff;min-width:0}
html body #loginScreen.lg2 .lg-hello{font:800 28px/1.15 var(--lg-f)!important;color:var(--lg-ink)!important;margin:0!important;text-align:left!important}
html body #loginScreen.lg2 .lg-hello-sub{color:var(--lg-sub)!important;font:500 14.5px/1.5 var(--lg-f)!important;margin:6px 0 20px!important;text-align:left!important;min-height:22px}
html body #loginScreen.lg2 .lg-roles{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:8px!important;margin:0 0 20px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #loginScreen.lg2 .lg-roles button.lg-role{
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-height:76px!important;height:auto!important;width:auto!important;margin:0!important;padding:12px 4px 10px!important;
  border:1.5px solid var(--lg-line)!important;border-radius:16px!important;background:#fff!important;color:#3d5a74!important;
  font:700 13.5px/1.2 var(--lg-f)!important;box-shadow:none!important;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .1s!important;text-transform:none!important;letter-spacing:0!important}
html body #loginScreen.lg2 .lg-roles button.lg-role:hover{border-color:#9cc8e4!important;background:#f5fafd!important}
html body #loginScreen.lg2 .lg-roles button.lg-role:active{transform:scale(.97)}
html body #loginScreen.lg2 .lg-roles button.lg-role svg{width:26px!important;height:26px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round;display:block!important;flex:0 0 auto}
html body #loginScreen.lg2 .lg-roles button.lg-role .efl-role-line{display:block!important;font:inherit!important;color:inherit!important;white-space:nowrap}
html body #loginScreen.lg2 .lg-roles button.lg-role.active{border-color:transparent!important;background:linear-gradient(120deg,#1680bd,#6a55e8)!important;color:#fff!important;box-shadow:0 10px 22px rgba(40,70,160,.3)!important}
html body #loginScreen.lg2 .lg-roles button.lg-role:focus-visible{outline:3px solid #9fd3ff!important;outline-offset:2px}
html body #loginScreen.lg2 .lg-roles button.lg-role .lg-last{position:absolute;top:-9px;left:50%;transform:translateX(-50%);background:#12a39a;color:#fff;font:800 9.5px/1 var(--lg-f);letter-spacing:.4px;padding:4px 7px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 10px rgba(18,163,154,.3)}

html body #loginScreen.lg2 .login-form{display:grid;gap:0!important;grid-template-rows:none!important;grid-auto-rows:auto!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;max-height:none!important;align-content:start!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #loginScreen.lg2 .login-form.hidden,html body #loginScreen.lg2 .login-form[hidden]{display:none!important}
html body #loginScreen.lg2 .login-form>label{display:block!important;font:700 13px/1.2 var(--lg-f)!important;color:#24435f!important;margin:0 0 7px!important;text-align:left!important}
html body #loginScreen.lg2 .lg-field{position:relative;margin:0 0 16px}
html body #loginScreen.lg2 .lg-field>.lg-ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:19px;height:19px;fill:none;stroke:#7b93a8;stroke-width:1.8;pointer-events:none;z-index:2}
html body #loginScreen.lg2 .lg-field>input{
  width:100%!important;height:50px!important;min-height:50px!important;margin:0!important;border:1.5px solid var(--lg-line)!important;border-radius:13px!important;
  padding:0 46px 0 44px!important;font:500 15.5px/1 var(--lg-f)!important;color:#17304d!important;background:#f8fbfd!important;box-shadow:none!important;outline:none!important;transition:border-color .15s,box-shadow .15s,background .15s!important}
html body #loginScreen.lg2 .lg-field>input::placeholder{color:#93a7b8;opacity:1}
html body #loginScreen.lg2 .lg-field>input:focus{border-color:#1680bd!important;box-shadow:0 0 0 4px rgba(22,128,189,.14)!important;background:#fff!important}
html body #loginScreen.lg2 .lg-field.err>input{border-color:#d64545!important;box-shadow:0 0 0 4px rgba(214,69,69,.12)!important}
html body #loginScreen.lg2 .lg-eye{position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;width:36px!important;height:36px!important;min-height:0!important;
  border-radius:9px!important;display:grid!important;place-items:center!important;color:#5b7287!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;cursor:pointer;z-index:2}
html body #loginScreen.lg2 .lg-eye:hover{background:#eef5fa!important}
html body #loginScreen.lg2 .lg-eye svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
html body #loginScreen.lg2 .lg-caps{display:flex;align-items:center;gap:6px;margin:-9px 0 14px;font:600 12.5px var(--lg-f);color:#a35c00}
html body #loginScreen.lg2 .lg-caps[hidden]{display:none}
html body #loginScreen.lg2 .lg-hidden-select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}

/* Öneri listesi */
html body #loginScreen.lg2 .lg-sugg{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--lg-line);border-radius:13px;box-shadow:0 18px 36px rgba(15,50,90,.18);padding:6px;z-index:20;max-height:248px;overflow:auto}
html body #loginScreen.lg2 .lg-sugg[hidden]{display:none}
html body #loginScreen.lg2 .lg-sugg button{display:block!important;width:100%!important;min-height:42px!important;height:auto!important;
  padding:9px 12px!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#24435f!important;font:600 14.5px/1.3 var(--lg-f)!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
html body #loginScreen.lg2 .lg-sugg button[aria-selected="true"],html body #loginScreen.lg2 .lg-sugg button:hover{background:#eef6fb!important}
html body #loginScreen.lg2 .lg-sugg mark{background:none;color:#1268a0;font-weight:800}
html body #loginScreen.lg2 .lg-sugg .lg-empty{padding:10px 12px;font:600 13.5px var(--lg-f);color:#7b93a8}
html body #loginScreen.lg2 .lg-combo.picked>input{background:#f2fbf8!important;border-color:#8fd9c6!important}

/* Giriş düğmesi */
html body #loginScreen.lg2 button.lg-submit{
  width:100%!important;height:52px!important;min-height:52px!important;margin:4px 0 0!important;padding:0 18px!important;border:0!important;border-radius:14px!important;
  background:linear-gradient(120deg,#1680bd,#1564a0)!important;color:#fff!important;font:800 16px/1 var(--lg-f)!important;letter-spacing:.2px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;box-shadow:0 12px 24px rgba(22,100,160,.28)!important;cursor:pointer;transition:filter .15s,transform .1s!important}
html body #loginScreen.lg2 button.lg-submit::after{content:"";width:19px;height:19px;background:currentColor;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h13M13 6l6 6-6 6"/></svg>') center/contain no-repeat;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h13M13 6l6 6-6 6"/></svg>') center/contain no-repeat}
html body #loginScreen.lg2 button.lg-submit:hover{filter:brightness(1.06)}
html body #loginScreen.lg2 button.lg-submit:active{transform:translateY(1px)}
html body #loginScreen.lg2 button.lg-submit:disabled{opacity:.85!important;cursor:progress}
html body #loginScreen.lg2 button.lg-submit:disabled::after{-webkit-mask:none;mask:none;width:17px;height:17px;border-radius:50%;background:none;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:lgSpin .8s linear infinite}
@keyframes lgSpin{to{transform:rotate(360deg)}}

/* Mesajlar */
html body #loginScreen.lg2 .login-message{font:600 13.5px/1.45 var(--lg-f)!important;color:#36597a!important;margin:10px 0 0!important;padding:0!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;text-align:left!important;background:none!important;border:0!important}
html body #loginScreen.lg2 .login-message:empty{display:none!important}
html body #loginScreen.lg2 .login-message.lg-err{color:#b42f2f!important;background:#fff4f4!important;border:1px solid #f3c6c6!important;border-radius:11px!important;padding:9px 12px!important}
html body #loginScreen.lg2 .login-message.lg-info{color:#0f5f93!important;background:#eef6fb!important;border-radius:11px!important;padding:9px 12px!important}

/* Alt satır */
html body #loginScreen.lg2 .lg-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 0;font:600 13px var(--lg-f);color:#3d5a74}
html body #loginScreen.lg2 .lg-chk{display:inline-flex!important;align-items:center;gap:8px;cursor:pointer;margin:0!important;font:600 13px var(--lg-f)!important;color:#3d5a74!important}
html body #loginScreen.lg2 .lg-chk input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#1680bd;padding:0!important;border-radius:5px!important}
html body #loginScreen.lg2 button.lg-link{background:none!important;border:0!important;padding:4px 0!important;margin:0!important;min-height:0!important;height:auto!important;box-shadow:none!important;
  color:#1268a0!important;font:700 13px var(--lg-f)!important;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer;width:auto!important}
html body #loginScreen.lg2 .lg-help{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#f3f8fc;border:1px solid var(--lg-line);font:500 13.5px/1.55 var(--lg-f);color:#24435f}
html body #loginScreen.lg2 .lg-help[hidden]{display:none}
html body #loginScreen.lg2 .lg-help b{color:var(--lg-ink)}
html body #loginScreen.lg2 .lg-foot{margin-top:auto;padding-top:22px;display:flex;justify-content:space-between;gap:10px;color:#7b93a8;font:600 12px var(--lg-f)}

/* ---------- Tablet ---------- */
@media (max-width:980px){
  html body #loginScreen.lg2>.lg-wrap{grid-template-columns:.9fr 1fr!important}
  html body #loginScreen.lg2 .lg-brand{padding:34px 30px 28px}
  html body #loginScreen.lg2 .lg-form{padding:34px 30px 26px}
  html body #loginScreen.lg2 .lg-efli{width:120px;height:240px;right:10px}
  html body #loginScreen.lg2 .lg-bubble{right:130px;bottom:120px;max-width:200px}
  html body #loginScreen.lg2 .lg-school{font-size:21px}
}
/* ---------- Telefon ---------- */
@media (max-width:760px){
  html body:has(#loginScreen.lg2:not(.hidden)){background-image:url("/assets/login-bg-mobile.jpg?v=2")!important;background-attachment:scroll!important}
  html body #loginScreen.lg2{padding:0!important;display:block!important}
  html body #loginScreen.lg2>.lg-wrap{grid-template-columns:1fr!important;align-content:start!important;border-radius:0!important;min-height:100vh;min-height:100dvh;box-shadow:none!important;background:transparent!important;overflow:visible!important}
  html body #loginScreen.lg2 .lg-brand{min-height:0;padding:18px 16px 60px;border-radius:0 0 28px 28px}
  html body #loginScreen.lg2 img.lg-logo{width:52px!important;height:52px!important;flex-basis:52px}
  html body #loginScreen.lg2 .lg-school{font-size:19px}
  html body #loginScreen.lg2 .lg-kick{font-size:10.5px;letter-spacing:1.6px}
  html body #loginScreen.lg2 :is(.lg-big,.lg-tag,.lg-motto,.lg-chips){display:none}
  html body #loginScreen.lg2 .lg-bubble{position:relative;right:auto;bottom:auto;max-width:none;margin:12px 96px 0 0;background:none;color:#fff;box-shadow:none;padding:0;border-radius:0;font-size:13.5px}
  html body #loginScreen.lg2 .lg-bubble b{color:#9fe4ff}
  html body #loginScreen.lg2 .lg-efli{width:58px;height:108px;right:16px;bottom:44px;top:auto}
  html body #loginScreen.lg2 .lg-form{margin:-48px 12px 16px;border-radius:24px;padding:22px 18px 18px;box-shadow:0 20px 50px rgba(4,22,44,.3);position:relative;z-index:2}
  html body #loginScreen.lg2 .lg-hello{font-size:22px!important}
  html body #loginScreen.lg2 .lg-hello-sub{font-size:13.5px!important;margin-bottom:14px!important}
  html body #loginScreen.lg2 .lg-roles{gap:6px!important;margin-bottom:16px!important}
  html body #loginScreen.lg2 .lg-roles button.lg-role{min-height:64px!important;padding:9px 2px 8px!important;font-size:12px!important;border-radius:14px!important;gap:4px!important}
  html body #loginScreen.lg2 .lg-roles button.lg-role svg{width:22px!important;height:22px!important}
  html body #loginScreen.lg2 .lg-field>input{font-size:16px!important}
  html body #loginScreen.lg2 .lg-row{flex-wrap:wrap}
  html body #loginScreen.lg2 .lg-foot{flex-direction:column;align-items:center;text-align:center;gap:3px}
}
@media (max-width:360px){
  html body #loginScreen.lg2 .lg-roles button.lg-role{font-size:11px!important}
  html body #loginScreen.lg2 .lg-bubble{margin-right:70px}
}
@media (prefers-reduced-motion:reduce){html body #loginScreen.lg2 .lg-efli{animation:none}}
/* Oturum geri yüklenirken / kulüplerden dönüşte giriş ekranı hiç görünmesin */
html.eflis-restoring-session body #loginScreen.lg2,
html.eflis-club-return body #loginScreen.lg2{display:none!important}
/* Google güvenlik doğrulaması kutusu */
html body #loginScreen.lg2 #efl-inline-recaptcha{margin:2px 0 14px!important;padding:12px 10px 12px!important;border:1.5px solid #f0d9a8!important;border-radius:14px!important;background:#fffaf0!important;min-height:0!important}
html body #loginScreen.lg2 #efl-inline-recaptcha .efl-recaptcha-title{margin:0 0 10px!important;font:500 12.5px/1.45 var(--lg-f)!important;color:#6b4a0c!important;text-align:center!important}
html body #loginScreen.lg2 #efl-inline-recaptcha .efl-recaptcha-title b{display:block;font:800 13.5px/1.3 var(--lg-f);color:#7a4b00;margin-bottom:2px}
html body #loginScreen.lg2 #efl-inline-recaptcha .efl-recaptcha-title span{display:block}
html body #loginScreen.lg2 button.lg-submit.lg-wait-rc{opacity:.6!important;cursor:default}
html body #loginScreen.lg2 button.lg-submit.lg-wait-rc::after{display:none}
html body #loginScreen.lg2 .login-message .lg-rc-hint{margin-top:5px;font:600 12.5px/1.45 var(--lg-f);color:#8a5a00}
@media (max-width:360px){html body #loginScreen.lg2 #efl-inline-recaptcha{padding:10px 4px!important}html body #loginScreen.lg2 #efl-recaptcha-box{transform:scale(.92);transform-origin:center top}}
