/* Premium, centred styling for the existing login/register popup only. */
body.g1-modern .auth-overlay{
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(5,12,7,.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
body.g1-modern .auth-overlay-panel{
  width:min(460px,calc(100vw - 28px));
  max-width:460px;
  max-height:min(92dvh,780px);
  overflow-y:auto;
  padding:28px clamp(20px,5vw,34px) 26px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,250,230,.97));
  box-shadow:0 34px 100px rgba(0,0,0,.42),inset 0 1px 0 #fff,0 0 0 1px rgba(250,204,21,.12);
  transform:translateY(14px) scale(.98);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s;
}
body.g1-modern .auth-overlay.open .auth-overlay-panel{transform:translateY(0) scale(1)}
body.g1-modern .auth-overlay-panel::before{display:none}
body.g1-modern .auth-overlay-close{
  top:14px;right:14px;width:38px;height:38px;
  border:1px solid rgba(20,32,23,.1);
  background:rgba(20,32,23,.055);color:#26331e;
}
body.g1-modern .auth-overlay-close:hover{background:rgba(212,170,0,.16);transform:rotate(90deg)}
body.g1-modern .auth-overlay-head{margin:0 0 18px}
body.g1-modern .auth-overlay-icon{
  width:58px;height:58px;margin:0 auto 12px;border-radius:18px;
  border:1px solid rgba(212,170,0,.36);
  background:linear-gradient(145deg,#fff2ad,#f5c400 58%,#e4a900);
  box-shadow:0 12px 28px rgba(201,155,0,.28),inset 0 1px 0 rgba(255,255,255,.8);
}
body.g1-modern .auth-overlay-head h2{margin:0 0 5px;color:#172316;font-size:1.5rem;letter-spacing:-.035em}
body.g1-modern .auth-overlay-head p{color:#687263;font-size:.88rem;line-height:1.5}
body.g1-modern .auth-overlay-panel .auth-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 16px!important;
  padding:5px;border:1px solid rgba(36,48,27,.09);border-radius:14px;background:rgba(30,45,22,.055);
}
body.g1-modern .auth-overlay-panel .auth-tab{
  min-height:40px;border:0;border-radius:10px;background:transparent;color:#58634f;
  font:inherit;font-size:.88rem;font-weight:750;transition:background .18s,color .18s,box-shadow .18s;
}
body.g1-modern .auth-overlay-panel .auth-tab.active{
  background:linear-gradient(135deg,#ffe77b,#f4c400);color:#26320f;
  box-shadow:0 4px 12px rgba(201,155,0,.2),inset 0 1px 0 rgba(255,255,255,.7);
}
body.g1-modern .auth-overlay-benefits{gap:7px;margin-bottom:15px}
body.g1-modern .auth-overlay-benefits span{
  padding:6px 9px;border:1px solid rgba(57,104,47,.13);border-radius:999px;
  background:rgba(63,145,74,.07);color:#365a30;font-size:.72rem;font-weight:700;
}
body.g1-modern .auth-overlay-panel .form{gap:13px}
body.g1-modern .auth-overlay-panel .form label>span{margin-bottom:6px;color:#34412e;font-size:.8rem;font-weight:750}
body.g1-modern .auth-overlay-panel .form input{
  min-height:48px;padding:11px 13px;border:1px solid #dce2d3;border-radius:12px;
  background:rgba(255,255,255,.94);color:#1f2a1d;box-shadow:inset 0 1px 2px rgba(20,32,23,.035);
}
body.g1-modern .auth-overlay-panel .form input:focus{outline:3px solid rgba(244,196,0,.2);border-color:#d4aa00}
body.g1-modern #authPwdInput,body.g1-modern #regPwdInput{padding-right:48px!important}
body.g1-modern #authPwdToggle,body.g1-modern #regPwdToggle{right:9px!important;color:#53613d!important}
body.g1-modern #authLoginBtn,body.g1-modern #authRegisterBtn{
  min-height:49px;border:1px solid #e6b900;border-radius:13px;
  background:linear-gradient(135deg,#ffe77b,#f4c400 60%,#edae00);color:#26320f;
  box-shadow:0 9px 20px rgba(201,155,0,.22);font-weight:850;
}
body.g1-modern #authLoginBtn:hover,body.g1-modern #authRegisterBtn:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(201,155,0,.28)}
body.g1-modern .auth-overlay-footer{margin-top:15px}
body.g1-modern .auth-overlay-footer a{color:#4d641d;text-decoration:none}
body.g1-modern .auth-overlay-footer a:hover{text-decoration:underline}
@media(max-width:520px){
  body.g1-modern .auth-overlay{padding:12px}
  body.g1-modern .auth-overlay-panel{width:100%;max-height:calc(100dvh - 24px);padding:23px 18px 21px;border-radius:23px}
  body.g1-modern .auth-overlay-benefits span{font-size:.68rem}
}
@media(prefers-reduced-motion:reduce){
  body.g1-modern .auth-overlay-panel,body.g1-modern .auth-overlay-close,body.g1-modern .auth-overlay-panel *{transition:none!important}
}
