/* Store Admin sign-in redesign (LOGIN-REDESIGN-3). Scoped to #gate only, so the other .gate screens
   (access denied etc.) keep their current look. Phone: clean photo on top + white bottom sheet.
   Desktop: split card. Swap the picture via --gate-photo (Pexels photo 6953924). */
#gate{--gate-photo:url("https://images.pexels.com/photos/6953924/pexels-photo-6953924.jpeg?auto=compress&cs=tinysrgb&w=1100");
  --g-ink:#0a1a2e;--g-mute:#5f6b78;--g-line:#d5dce1;--g-f:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  min-height:100vh;min-height:100dvh;box-sizing:border-box;padding:0;align-items:stretch;justify-content:center;background:#fff}
#gate .gate-split{display:flex;flex-direction:column;width:100%;min-height:100dvh}
#gate .gate-photo{position:relative;flex:1 1 auto;min-height:190px;overflow:hidden;
  background:linear-gradient(180deg,rgba(0,0,0,.3) 0,rgba(0,0,0,0) 110px),var(--gate-photo) 50% 18%/cover no-repeat,#dfe5ea}
#gate .gate-photo-brand{position:absolute;left:20px;top:max(16px,env(safe-area-inset-top));display:flex;align-items:center;gap:10px;color:#fff;font:700 19px/1 var(--g-f);letter-spacing:-.03em;text-shadow:0 1px 8px rgba(0,0,0,.35)}
#gate .gate-photo-brand img{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.2);padding:3px;box-sizing:border-box}
#gate .gate-photo-copy,#gate .gate-photo-chips{display:none}

#gate .gate-card{flex:none;position:relative;z-index:1;width:100%;max-width:none;box-sizing:border-box;margin:-30px 0 0;padding:30px 22px max(26px,env(safe-area-inset-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -10px 30px -18px rgba(10,26,46,.35)}
#gate .gate-brand{display:block;margin:0 0 6px;text-align:center}
#gate .gate-brand .mark{display:none}
#gate .gate-brand span{display:block;font:700 clamp(28px,8vw,34px)/1.15 var(--g-f);letter-spacing:-.03em;color:var(--g-ink)}
#gate .gate-brand span b{color:var(--primary);font-weight:700}
#gate .gate-card p.sub{text-align:center;font:500 16px/1.5 var(--g-f);color:var(--g-mute);margin:0 0 26px}
#gate .gate-error{border-radius:14px}
#gate .field{position:relative;margin:0 0 14px;padding:0;border:0;background:none;box-shadow:none}
#gate .field label{display:block;margin:0 0 8px;font:600 14.5px/1.3 var(--g-f);color:var(--g-ink)}
#gate .field input{display:block;width:100%;box-sizing:border-box;height:54px;padding:0 16px;border:1.5px solid var(--g-line);border-radius:16px;background:#fff;box-shadow:none;outline:0;font:500 16.5px var(--g-f);color:var(--g-ink);transition:border-color .15s,box-shadow .15s}
#gate .field input::placeholder{color:#a3adb7;font-weight:400}
#gate .field input:focus{border-color:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 16%,transparent)}
#gate .field.has-toggle input{padding-right:48px}
#gate .gate-eye{position:absolute;right:6px;bottom:7px;width:40px;height:40px;border:0;background:none;color:#7b8794;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}
#gate .gate-eye:hover{color:var(--g-ink)}
#gate .btn.btn-primary{height:58px;margin-top:8px;border-radius:16px;font:700 17px var(--g-f)}
#gate .gate-note{margin-top:22px;font:500 15px/1.6 var(--g-f);color:var(--g-mute)}
#gate .gate-note a{color:var(--primary)!important;font-weight:600!important;text-decoration:underline;text-underline-offset:3px}

@media (min-width:900px){
  #gate{align-items:center;padding:40px 24px;background:linear-gradient(135deg,#e8f3f0 0%,#eef3f9 100%)}
  #gate .gate-split{display:grid;grid-template-columns:1.08fr 1fr;width:100%;max-width:1020px;min-height:620px;padding:14px;box-sizing:border-box;border-radius:30px;background:#fff;box-shadow:0 2px 4px rgba(10,26,46,.04),0 30px 70px -24px rgba(10,26,46,.28)}
  #gate .gate-photo{min-height:592px;border-radius:22px;
    background:linear-gradient(180deg,rgba(10,26,46,.5) 0%,rgba(10,26,46,.05) 34%,rgba(10,26,46,.82) 100%),var(--gate-photo) 50% 25%/cover no-repeat,#0a1a2e}
  #gate .gate-photo-brand{left:28px;top:28px}
  #gate .gate-photo-copy{display:block;position:absolute;left:30px;right:30px;bottom:86px;color:#fff}
  #gate .gate-photo-copy h2{margin:0 0 10px;font:700 clamp(28px,3vw,36px)/1.1 var(--g-f);letter-spacing:-.035em;color:#fff}
  #gate .gate-photo-copy p{margin:0;max-width:380px;font:500 16px/1.5 var(--g-f);color:rgba(255,255,255,.86)}
  #gate .gate-photo-chips{display:flex;flex-wrap:wrap;gap:8px;position:absolute;left:30px;right:30px;bottom:28px}
  #gate .gate-photo-chips span{padding:7px 14px;border-radius:99px;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);color:#fff;font:600 13.5px var(--g-f)}
  #gate .gate-card{align-self:center;margin:0;padding:24px 52px;border-radius:0;box-shadow:none}
  #gate .gate-brand span,#gate .gate-card p.sub{text-align:left}
  #gate .gate-brand span{font-size:32px}
}
@media (prefers-reduced-motion:reduce){#gate *{transition:none!important}}
