/* =========================================================
   KADALGAMING CUSTOMER AUTH V2
   Login, Register, OTP verification page polish.
========================================================= */
:root{
  --auth-lime:#b7ff39;
  --auth-lime-2:#97f11e;
  --auth-dark:#04090c;
  --auth-panel:#0b1216;
  --auth-panel-2:#111a1f;
  --auth-text:#f7fff9;
  --auth-muted:#aeb9b3;
  --auth-border:rgba(183,255,57,.18);
}
body.auth-v2-page .site-shell{background:#030709;}
body.auth-v2-page main{position:relative;overflow:hidden;}
.kg-auth-v2{
  position:relative;
  padding:clamp(70px,7vw,116px) 0 clamp(72px,8vw,126px);
  min-height:calc(100vh - 130px);
  display:flex;
  align-items:center;
}
.kg-auth-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 20%, rgba(183,255,57,.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(183,255,57,.08), transparent 24%),
    linear-gradient(180deg,rgba(3,7,9,.25),#030709 70%);
}
.kg-auth-bg::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.16;
  background-image:linear-gradient(rgba(183,255,57,.12) 1px, transparent 1px),linear-gradient(90deg,rgba(183,255,57,.12) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(circle at 45% 40%,#000,transparent 70%);
}
.kg-auth-grid-v2{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(420px,.82fr);
  gap:clamp(28px,4.5vw,78px);
  align-items:center;
}
.kg-auth-otp-grid{grid-template-columns:minmax(0,1fr) minmax(390px,.72fr);}
.kg-auth-copy-v2{max-width:650px;}
.kg-auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
  color:var(--auth-lime);
  font-family:'Rajdhani','Inter',sans-serif;
  font-size:13px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.kg-auth-kicker i{
  width:36px;
  height:3px;
  background:var(--auth-lime);
  box-shadow:0 0 18px rgba(183,255,57,.75);
}
.kg-auth-copy-v2 h1{
  margin:0;
  color:#fff;
  font-family:'Teko','Rajdhani',sans-serif;
  font-size:clamp(62px,7vw,112px);
  line-height:.86;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.kg-auth-copy-v2 p{
  max-width:620px;
  margin:24px 0 0;
  color:#cdd6d0;
  font-size:17px;
  line-height:1.75;
  font-weight:600;
}
.kg-auth-feature-stack{
  display:grid;
  gap:14px;
  margin-top:32px;
  max-width:570px;
}
.kg-auth-feature-stack div{
  position:relative;
  display:grid;
  grid-template-columns:54px 1fr;
  gap:16px;
  align-items:center;
  min-height:78px;
  padding:16px 20px;
  background:linear-gradient(180deg,rgba(13,20,24,.86),rgba(8,13,16,.92));
  border:1px solid rgba(183,255,57,.13);
  clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
  box-shadow:0 16px 36px rgba(0,0,0,.18);
}
.kg-auth-feature-stack b{
  grid-row:span 2;
  color:var(--auth-lime);
  font-family:'Teko','Rajdhani',sans-serif;
  font-size:42px;
  line-height:.85;
}
.kg-auth-feature-stack strong{color:#fff;font-size:14px;line-height:1.2;}
.kg-auth-feature-stack span{color:#aeb9b3;font-size:13px;line-height:1.45;}
.kg-auth-card-v2{
  position:relative;
  padding:28px;
  background:linear-gradient(180deg,rgba(18,25,29,.96),rgba(8,12,15,.98));
  border:1px solid rgba(183,255,57,.16);
  clip-path:polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px);
  box-shadow:0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
.kg-auth-card-v2::before{
  content:"";
  position:absolute;
  inset:1px;
  z-index:-1;
  background:radial-gradient(circle at 20% 0,rgba(183,255,57,.14),transparent 34%);
  clip-path:inherit;
}
.kg-auth-card-head{
  margin-bottom:22px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.kg-auth-card-head span{
  color:var(--auth-lime);
  font-size:12px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.kg-auth-card-head h2{
  margin:8px 0 8px;
  color:#fff;
  font-family:'Teko','Rajdhani',sans-serif;
  font-size:46px;
  line-height:.9;
  text-transform:uppercase;
}
.kg-auth-card-head p{margin:0;color:#aeb9b3;font-size:13.5px;line-height:1.55;}
.kg-auth-method-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.kg-auth-form-card{
  padding:18px;
  background:linear-gradient(180deg,rgba(9,14,17,.84),rgba(7,11,14,.92));
  border:1px solid rgba(255,255,255,.08);
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
}
.kg-auth-method-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.kg-auth-method-title b{color:#fff;font-size:15px;}
.kg-auth-method-title span{color:var(--auth-lime);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.kg-auth-form-card label{
  display:block;
  margin-bottom:14px;
  color:#f4fbf6;
  font-size:13px;
  font-weight:850;
}
.kg-auth-form-card input{
  width:100%;
  height:50px;
  margin-top:8px;
  padding:0 16px;
  color:#fff;
  background:linear-gradient(180deg,rgba(26,32,36,.92),rgba(16,21,25,.96));
  border:1px solid rgba(255,255,255,.08);
  border-radius:0;
  outline:none;
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.kg-auth-form-card input:focus{
  border-color:rgba(183,255,57,.52);
  box-shadow:0 0 0 3px rgba(183,255,57,.12);
}
.kg-auth-form-card input:disabled{opacity:.5;cursor:not-allowed;}
.kg-auth-submit{
  width:100%;
  min-height:52px;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#071006;
  background:linear-gradient(135deg,#d2ff4c,#97f11e);
  clip-path:polygon(15px 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%,0 15px);
  font-size:13px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.035em;
  box-shadow:0 18px 38px rgba(151,241,30,.22);
  transition:transform .22s ease, box-shadow .22s ease;
}
.kg-auth-submit:hover{transform:translateY(-2px);box-shadow:0 24px 48px rgba(151,241,30,.3);}
.kg-auth-submit:disabled{opacity:.55;cursor:not-allowed;transform:none;}
.kg-auth-submit-dark{background:linear-gradient(180deg,rgba(18,25,29,.96),rgba(8,12,15,.98));color:var(--auth-lime);box-shadow:inset 0 0 0 1px rgba(183,255,57,.2);}
.kg-auth-small-note{margin:4px 0 16px!important;color:#96a19b!important;font-size:12px!important;line-height:1.5!important;}
.kg-auth-bottom-link{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:18px;
  color:#aeb9b3;
  font-size:13.5px;
}
.kg-auth-bottom-link.inside{margin-top:15px;}
.kg-auth-bottom-link a{color:var(--auth-lime);font-weight:900;}
.kg-auth-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.kg-auth-register-form{padding:20px;}
.kg-auth-google-box{margin-bottom:14px;}
.kg-auth-google-box .kg-social-btn{
  width:100%;
  min-height:50px;
  border-radius:0;
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  border:1px solid rgba(255,255,255,.1);
  background:#fff;
  color:#101418;
  font-weight:900;
}
.kg-or-divider{margin:10px 0 16px;text-align:center;color:#7f8a84;font-size:12px;position:relative;}
.kg-or-divider::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(255,255,255,.08);}
.kg-or-divider span{position:relative;background:#10171b;padding:0 12px;}
.kg-alert{
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-weight:750;
  font-size:13px;
  line-height:1.5;
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
}
.kg-alert.success{background:rgba(34,197,94,.13);border-color:rgba(34,197,94,.35);}
.kg-alert.error{background:rgba(255,72,72,.13);border-color:rgba(255,72,72,.35);}
.kg-alert.warning{background:rgba(255,191,37,.13);border-color:rgba(255,191,37,.35);}
.kg-otp-input{
  height:64px!important;
  text-align:center;
  font-size:30px;
  font-weight:950;
  letter-spacing:.28em;
  color:var(--auth-lime)!important;
}
.kg-auth-resend-form{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.kg-auth-resend-form button,
.kg-auth-resend-form a{
  border:0;
  background:transparent;
  color:var(--auth-lime);
  font-weight:900;
  cursor:pointer;
  font-size:13px;
}
.kg-auth-resend-form a{color:#dfe8e3;}

@media (max-width:1080px){
  .kg-auth-grid-v2,.kg-auth-otp-grid{grid-template-columns:1fr;gap:30px;}
  .kg-auth-copy-v2{max-width:none;}
  .kg-auth-card-v2{max-width:760px;width:100%;}
}
@media (max-width:720px){
  .kg-auth-v2{padding:48px 0 72px;}
  .kg-auth-copy-v2 h1{font-size:clamp(50px,14vw,72px);}
  .kg-auth-copy-v2 p{font-size:14.5px;line-height:1.7;}
  .kg-auth-feature-stack div{grid-template-columns:44px 1fr;padding:14px 16px;min-height:72px;}
  .kg-auth-feature-stack b{font-size:34px;}
  .kg-auth-card-v2{padding:18px;clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);}
  .kg-auth-card-head h2{font-size:38px;}
  .kg-auth-method-grid,.kg-auth-two-cols{grid-template-columns:1fr;}
  .kg-auth-form-card{padding:16px;}
  .kg-auth-resend-form{flex-direction:column;align-items:stretch;text-align:center;}
}

/* =========================================================
   KADALGAMING CUSTOMER LOGIN - OTP ONLY SIMPLIFIED
   One clear login action: email -> OTP.
========================================================= */
body.auth-otp-only-page .kg-auth-single-grid{
  grid-template-columns:minmax(0,1.02fr) minmax(380px,.64fr);
}
body.auth-otp-only-page .kg-auth-single-card{
  max-width:520px;
  width:100%;
  margin-left:auto;
  padding:clamp(24px,3vw,34px);
}
body.auth-otp-only-page .kg-auth-card-head-center{
  text-align:left;
  margin-bottom:22px;
}
body.auth-otp-only-page .kg-auth-card-head-center h2{
  font-size:clamp(54px,5vw,76px);
  letter-spacing:.01em;
}
body.auth-otp-only-page .kg-auth-otp-single-form{
  padding:22px;
  background:linear-gradient(180deg,rgba(9,14,17,.92),rgba(7,11,14,.96));
  border-color:rgba(183,255,57,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 18px 42px rgba(0,0,0,.2);
}
body.auth-otp-only-page .kg-auth-otp-single-form label{
  margin-bottom:16px;
  font-size:14px;
}
body.auth-otp-only-page .kg-auth-otp-single-form input{
  height:58px;
  font-size:15px;
  font-weight:800;
}
body.auth-otp-only-page .kg-auth-otp-note{
  margin:0 0 20px!important;
  color:#b8c4bd!important;
  font-size:13px!important;
  line-height:1.65!important;
}
body.auth-otp-only-page .kg-auth-submit{
  min-height:58px;
  font-size:14px;
}
body.auth-otp-only-page .kg-auth-otp-warning{
  margin-top:14px;
}
body.auth-otp-only-page .kg-auth-bottom-link{
  margin-top:22px;
}

@media (max-width:980px){
  body.auth-otp-only-page .kg-auth-single-grid{
    grid-template-columns:1fr;
  }
  body.auth-otp-only-page .kg-auth-single-card{
    max-width:none;
    margin:0;
  }
}

@media (max-width:640px){
  body.auth-otp-only-page .kg-auth-v2{
    padding:46px 0 64px;
  }
  body.auth-otp-only-page .kg-auth-single-card{
    padding:20px;
  }
  body.auth-otp-only-page .kg-auth-card-head-center h2{
    font-size:54px;
  }
  body.auth-otp-only-page .kg-auth-card-head-center p{
    font-size:13px;
  }
  body.auth-otp-only-page .kg-auth-otp-single-form{
    padding:18px;
  }
  body.auth-otp-only-page .kg-auth-otp-single-form input{
    height:54px;
  }
}

/* =========================================================
   KADALGAMING LOGIN MOBILE - INLINE REGISTER LINK FIX
   Keeps "Belum punya account? Register customer" in one clean row.
========================================================= */
body.auth-otp-only-page .kg-auth-bottom-link{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  text-align:center!important;
}
body.auth-otp-only-page .kg-auth-bottom-link span,
body.auth-otp-only-page .kg-auth-bottom-link a{
  display:inline-flex!important;
  align-items:center!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

@media (max-width:640px){
  body.auth-otp-only-page .kg-auth-bottom-link{
    gap:7px!important;
    margin-top:18px!important;
    font-size:13px!important;
    letter-spacing:-.02em!important;
  }
  body.auth-otp-only-page .kg-auth-bottom-link a{
    font-size:13px!important;
    font-weight:950!important;
  }
}

@media (max-width:380px){
  body.auth-otp-only-page .kg-auth-bottom-link{
    gap:6px!important;
    font-size:12px!important;
  }
  body.auth-otp-only-page .kg-auth-bottom-link a{
    font-size:12px!important;
  }
}
