#gate-overlay{
  position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;
  background:linear-gradient(160deg,#0a1f2e 0%,#0e2c3f 55%,#134156 100%);
  overflow:hidden;
}
#gate-overlay::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(255,255,255,.14) 1.5px,transparent 1.5px);
  background-size:26px 26px;opacity:.5;pointer-events:none;
}
#gate-overlay::after{
  content:"";position:absolute;z-index:0;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(20,184,166,.35),transparent 65%);
  top:50%;left:50%;transform:translate(-50%,-50%);filter:blur(10px);pointer-events:none;
}
#gate-overlay .gate-card{
  position:relative;z-index:1;background:#fff;border-radius:22px;padding:0 0 32px;max-width:400px;width:100%;text-align:center;
  box-shadow:0 30px 60px -15px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.08);
  overflow:hidden;animation:gate-in .45s cubic-bezier(.2,.8,.3,1);
}
@keyframes gate-in{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

#gate-overlay .gate-top{
  background:linear-gradient(135deg,#0a1f2e 0%,#0e2c3f 60%,#134156 100%);
  padding:30px 28px 42px;position:relative;overflow:hidden;
}
#gate-overlay .gate-top::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(255,255,255,.12) 1.5px,transparent 1.5px);
  background-size:20px 20px;
}
#gate-overlay .gate-logo-badge{
  position:relative;width:76px;height:76px;margin:0 auto;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;padding:14px;
  box-shadow:0 10px 24px -6px rgba(0,0,0,.4);
}
#gate-overlay .gate-logo-badge img{width:100%;height:100%;object-fit:contain}

#gate-overlay .gate-body{padding:22px 28px 0;position:relative}
#gate-overlay h1{
  font-family:'Poppins',-apple-system,'Segoe UI',sans-serif;font-weight:800;font-size:22px;margin:0 0 6px;color:#0a1f2e;
  letter-spacing:-.01em;
}
#gate-overlay p.gate-sub{
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif;color:#516170;font-size:14px;margin:0 0 24px;line-height:1.55;
}
#gate-overlay form{text-align:left}
#gate-overlay label{
  display:block;font-family:'Poppins',-apple-system,'Segoe UI',sans-serif;font-weight:600;font-size:12px;
  color:#516170;margin:0 0 6px;text-transform:uppercase;letter-spacing:.04em;
}
#gate-overlay .gate-field{position:relative;margin-bottom:16px}
#gate-overlay .gate-field svg{
  position:absolute;left:14px;top:38px;width:17px;height:17px;color:#8a99a4;pointer-events:none;
  transition:color .15s;
}
#gate-overlay .gate-field:focus-within svg{color:#0d9488}
#gate-overlay input{
  width:100%;padding:13px 14px 13px 40px;border-radius:11px;border:1.5px solid #dfe9e7;
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif;font-size:16px;color:#122029;box-sizing:border-box;
  background:#f9fbfb;transition:border-color .15s,background .15s,box-shadow .15s;
}
#gate-overlay input:focus{
  outline:none;border-color:#0d9488;background:#fff;box-shadow:0 0 0 4px rgba(13,148,136,.12);
}
#gate-overlay button[type="submit"]{
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(120deg,#14b8a6,#0d9488);color:#fff;font-weight:700;border:none;cursor:pointer;
  padding:15px 20px;border-radius:11px;width:100%;font-family:'Poppins',-apple-system,'Segoe UI',sans-serif;font-size:15px;
  margin-top:4px;box-shadow:0 10px 20px -8px rgba(13,148,136,.55);transition:transform .15s,box-shadow .15s;
}
#gate-overlay button[type="submit"] svg{width:17px;height:17px}
#gate-overlay button[type="submit"]:active{transform:scale(.98)}
#gate-overlay button[type="submit"]:disabled{opacity:.6;box-shadow:none}
#gate-overlay .gate-error{
  color:#e0503a;font-size:13px;margin:0 0 14px;display:none;background:#fdecea;padding:10px 12px;border-radius:9px;
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif;
}
#gate-overlay .gate-error.visible{display:block}
#gate-overlay .gate-trust{
  display:flex;align-items:center;justify-content:center;gap:6px;margin-top:18px;
  font-size:11.5px;color:#8a99a4;font-family:'Inter',-apple-system,'Segoe UI',sans-serif;
}
#gate-overlay .gate-trust svg{width:13px;height:13px;color:#0d9488}

@media (max-width:420px){
  #gate-overlay .gate-card{border-radius:18px}
  #gate-overlay .gate-top{padding:28px 20px 48px}
  #gate-overlay .gate-body{padding:0 20px}
}
