/* Smith Digital V4 — Login & Daftar: teks + HP satu frame, formulir di kanan.
   Tambahan presentasi khusus halaman autentikasi. Tidak memodifikasi alur PHP. */
html[data-smith-theme] body.smith-public-auth main.v31a-auth {
  width: min(1510px, calc(100% - 44px));
  max-width: none;
  min-height: calc(100svh - 80px);
  padding: clamp(22px,3vw,44px) 0 clamp(28px,3vw,54px);
  display: grid;
  grid-template-columns: minmax(0, 1.57fr) minmax(342px, .93fr);
  gap: 16px;
  align-items: stretch;
}
html[data-smith-theme] body.smith-public-auth .v31a-intro {
  --frame-copy: #102a5b;
  --frame-muted: #5d739d;
  position:relative;
  min-width:0;
  align-self:stretch;
  isolation:isolate;
  overflow:visible;
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(218px, .88fr);
  align-items:center;
  gap:clamp(14px,2vw,26px);
  padding:clamp(22px,2.6vw,34px) clamp(10px,1vw,12px) clamp(20px,2vw,26px) 0;
  border-radius:0;
  border:none;
  background:transparent;
  box-shadow:none;
  color:var(--frame-copy);
}
html[data-smith-theme] body.smith-public-auth .v31a-intro::before {display:none;}
html[data-smith-theme] body.smith-public-auth .v31a-intro::after {display:none;}
.v4-auth-copy {position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
html[data-smith-theme] body.smith-public-auth .v31a-eyebrow {
  margin:0 0 clamp(18px,2.7vw,30px)!important;
  padding:9px 12px;
  border:1px solid rgba(181,216,255,.28);
  background:rgba(60,108,206,.07);
  color:#2454c7!important;
  font-size:10px;
}
html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {
  margin:0 0 21px!important;
  max-width:490px;
  color:#102a5b!important;
  font-size:clamp(30px,3.25vw,54px)!important;
  line-height:1.12!important;
  font-weight:870!important;
  letter-spacing:-.065em!important;
}
html[data-smith-theme] body.smith-public-auth .v31a-intro h1 em {
  background:linear-gradient(95deg,#6ddaff 0%,#91b5ff 65%,#cda3ff 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
html[data-smith-theme] body.smith-public-auth .v31a-summary {
  margin:0 0 28px!important;
  max-width:385px;
  font-size:clamp(12px,1vw,15px)!important;
  color:var(--frame-muted)!important;
  line-height:1.85!important;
}
html[data-smith-theme] body.smith-public-auth .v31a-points {
  display:grid;gap:13px;align-content:start;color:#173666;font-size:12px;font-weight:760;
}
html[data-smith-theme] body.smith-public-auth .v31a-points i {
  width:22px;height:22px;color:#19a57d;background:rgba(25,165,125,.12);
}
html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
  position:relative;z-index:1;isolation:isolate;display:flex;align-items:center;justify-content:center;
  width:100%;height:auto;min-height:510px;margin:0;padding:8px 0;
}
html[data-smith-theme] body.smith-public-auth .v31a-orbit {
  width:310px;height:435px;border-color:rgba(76,120,202,.14);
  transform:rotate(-22deg);border-radius:40%;
}
html[data-smith-theme] body.smith-public-auth .v31a-phone {
  width: min(270px,100%);
  height: 518px;
  flex-shrink:0;
  transform:none!important;
  animation:none!important;
  border:4px solid #8199ba;
  padding:7px;
  border-radius:42px;
  box-shadow:0 26px 60px rgba(10,24,68,.30),0 8px 20px rgba(33,84,182,.16),inset 0 0 0 2px #0b1730;
}
html[data-smith-theme] body.smith-public-auth .v31a-phone-form {
  margin-top:11px;
}
html[data-smith-theme] body.smith-public-auth .v31a-form-area {
  align-self:stretch;min-width:0;display:flex;align-items:center;
}
html[data-smith-theme] body.smith-public-auth .v31a-form-card {
  width:100%;max-width:none;
  min-width:0;margin:0;
  padding:clamp(26px,3.1vw,48px);
  border-radius:26px;
  box-shadow:0 17px 50px rgba(29,65,129,.06);
}
/* Auth-forms retain their original fields, CSRF action, redirects and validation. */
html[data-smith-theme] body.smith-public-auth .v31a-form-card h2 {font-size:clamp(29px,2.7vw,41px);}
@media (max-width:1180px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    grid-template-columns:minmax(0,1.43fr) minmax(334px,.98fr);
    gap:12px;
    width:calc(100% - 28px);
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {padding:20px 0 14px;gap:10px;grid-template-columns:minmax(0,1fr) minmax(180px,.9fr)}
  html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {font-size:clamp(29px,3.1vw,43px)!important}
  html[data-smith-theme] body.smith-public-auth .v31a-phone {width:226px;height:438px;border-radius:39px}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {min-height:470px}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:30px 26px}
}
@media(max-width:950px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    display:flex;flex-direction:column;align-items:stretch;
    width:min(650px,calc(100% - 32px));
    padding:26px 0 52px;gap:20px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-form-area {order:-1}
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.75fr);
    padding:18px 0;min-height:390px;gap:12px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {font-size:clamp(34px,5vw,46px)!important}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {display:flex;min-height:360px}
  html[data-smith-theme] body.smith-public-auth .v31a-phone {width:214px;height:410px}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:32px}
}
@media(max-width:600px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {width:calc(100% - 22px);gap:15px;padding:14px 0 45px;min-height:0}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:clamp(22px,5.8vw,30px);border-radius:21px}
  html[data-smith-theme] body.smith-public-auth .v31a-intro {grid-template-columns:minmax(0,1fr);gap:10px;justify-items:center;padding:20px 0 6px;min-height:0;border-radius:0}
  html[data-smith-theme] body.smith-public-auth .v4-auth-copy {align-items:flex-start;width:100%;}
  html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {font-size:clamp(32px,8vw,46px)!important;margin-bottom:14px!important}
  html[data-smith-theme] body.smith-public-auth .v31a-summary {font-size:13px!important;line-height:1.55!important;margin-bottom:13px!important}
  html[data-smith-theme] body.smith-public-auth .v31a-points {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;font-size:10px}
  html[data-smith-theme] body.smith-public-auth .v31a-points span {line-height:1.32;align-items:flex-start}
  html[data-smith-theme] body.smith-public-auth .v31a-points i {flex:0 0 19px;height:19px;width:19px}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {min-height:375px;margin-top:0;padding:3px 0}
  html[data-smith-theme] body.smith-public-auth .v31a-phone {width:218px;height:414px}
  html[data-smith-theme] body.smith-public-auth .v31a-orbit {width:290px;height:320px}
}
@media(max-width:350px) {
  html[data-smith-theme] body.smith-public-auth .v31a-intro {padding:18px 0 6px}
  html[data-smith-theme] body.smith-public-auth .v31a-points {font-size:9px}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:22px 17px}
}
@media(prefers-reduced-motion:reduce) {
  html[data-smith-theme] body.smith-public-auth .v31a-phone {animation:none!important;}
}
/* Give the highlighted phrase a clean line break instead of crowding adjacent words. */
html[data-smith-theme] body.smith-public-auth .v31a-intro h1 em {display:block;}


/* V4.3: HP matches the form card height on roomy desktop screens. */
@media (min-width:1181px) {
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    grid-template-columns:minmax(0,1fr) minmax(280px,.97fr);
    gap:clamp(12px,1.3vw,24px);
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
    min-height:var(--v4-auth-phone-height, 580px);
    padding:0;
    align-self:center;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone {
    box-sizing:border-box;
    height:var(--v4-auth-phone-height,580px);
    width:min(340px, calc(var(--v4-auth-phone-height,580px) * .51), 100%);
    max-width:100%;
    border-radius:clamp(40px,3.2vw,49px);
    box-shadow:0 34px 70px rgba(13,37,84,.28),0 12px 25px rgba(25,65,136,.17),inset 0 0 0 2px #0b1730;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-form h3 {font-size:14px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-service strong {font-size:9px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-field strong {font-size:9px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-field small {font-size:8px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-tabs {font-size:9px;}
}


/* Dark theme readability for the transparent left column. */
html[data-smith-theme="dark"] body.smith-public-auth .v31a-intro h1 {
  color:#eff5ff!important;
}
html[data-smith-theme="dark"] body.smith-public-auth .v31a-summary {
  color:#b8c9e6!important;
}
html[data-smith-theme="dark"] body.smith-public-auth .v31a-points {
  color:#e1ecfd!important;
}
html[data-smith-theme="dark"] body.smith-public-auth .v31a-eyebrow {
  color:#a9c9ff!important;
  border-color:rgba(141,185,249,.24);
  background:rgba(73,118,213,.13);
}


/* V4.4: compact auth layout and cinematic but lightweight entrance sequence.
   Desktop: HP travels LEFT -> RIGHT, copy reveals, then form rises from BELOW.
   We animate containers only so password controls, form actions, and the ongoing
   Custom Komentar animation remain fully functional. */
html[data-smith-theme] body.smith-public-auth main.v31a-auth {
  width:min(1360px,calc(100% - 54px));
  min-height:0;
  padding:clamp(16px,2.3vw,30px) 0 clamp(20px,2.5vw,34px);
  column-gap:clamp(18px,2.1vw,30px);
  align-items:center;
  grid-template-columns:minmax(0,1.53fr) minmax(370px,.98fr);
}
html[data-smith-theme] body.smith-public-auth .v31a-intro {
  gap:clamp(12px,1.6vw,20px);
  padding:8px 0;
  grid-template-columns:minmax(0,1fr) minmax(252px,.94fr);
  align-self:center;
}
html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {
  font-size:clamp(31px,3.15vw,50px)!important;
  margin-bottom:15px!important;
}
html[data-smith-theme] body.smith-public-auth .v31a-eyebrow {margin-bottom:19px!important;}
html[data-smith-theme] body.smith-public-auth .v31a-summary {
  margin-bottom:18px!important;
  line-height:1.65!important;
}
html[data-smith-theme] body.smith-public-auth .v31a-points {gap:9px;}
html[data-smith-theme] body.smith-public-auth .v31a-form-card {
  padding:clamp(24px,2.55vw,36px);
  border-radius:23px;
}
html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
  min-height:var(--v4-auth-phone-height,555px);
  padding:0;
}
@media(min-width:1181px) {
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    grid-template-columns:minmax(0,1fr) minmax(252px,.92fr);
    gap:clamp(12px,1.7vw,24px);
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone {
    width:min(312px,calc(var(--v4-auth-phone-height,555px) * .515),100%);
    height:var(--v4-auth-phone-height,555px);
  }
}
@media(min-width:951px) and (max-width:1180px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    width:calc(100% - 36px);
    grid-template-columns:minmax(0,1.5fr) minmax(335px,1fr);
    column-gap:16px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    grid-template-columns:minmax(0,1fr) minmax(192px,.83fr);
    gap:10px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {min-height:458px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone {width:225px;height:435px;}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:26px;}
}
@media(min-width:951px) and (prefers-reduced-motion:no-preference) {
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
    animation:sd-v44-phone-enter 1050ms cubic-bezier(.19,1,.28,1) 70ms both;
    will-change:transform,opacity;
  }
  html[data-smith-theme] body.smith-public-auth .v4-auth-copy {
    animation:sd-v44-copy-enter 720ms cubic-bezier(.18,1,.32,1) 1030ms both;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-form-area {
    animation:sd-v44-form-enter 850ms cubic-bezier(.18,1,.32,1) 1660ms both;
  }
}
@keyframes sd-v44-phone-enter {
  from {opacity:0;transform:translate3d(-110px,0,0) scale(.96)}
  to {opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes sd-v44-copy-enter {
  from {opacity:0;transform:translate3d(0,22px,0)}
  to {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes sd-v44-form-enter {
  from {opacity:0;transform:translate3d(0,70px,0)}
  to {opacity:1;transform:translate3d(0,0,0)}
}
@media(max-width:950px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    width:min(650px,calc(100% - 26px));
    padding:18px 0 34px;
    gap:15px;
    display:flex;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    padding:10px 0;
    gap:12px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {min-height:380px;}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:clamp(22px,4vw,30px);}
}
@media(max-width:600px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    width:calc(100% - 22px);padding:12px 0 28px;gap:12px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {padding:8px 0;gap:10px;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {min-height:376px;}
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {padding:clamp(20px,5vw,27px)}
  html[data-smith-theme] body.smith-public-auth .v31a-summary {margin-bottom:13px!important;}
}
@media(max-width:950px) and (prefers-reduced-motion:no-preference) {
  /* Form appears first in the vertical mobile layout, so inputs remain easy to reach. */
  html[data-smith-theme] body.smith-public-auth .v31a-form-area {
    animation:sd-v44-form-enter 680ms cubic-bezier(.18,1,.32,1) 60ms both;
  }
  html[data-smith-theme] body.smith-public-auth .v4-auth-copy {
    animation:sd-v44-copy-enter 650ms ease-out 420ms both;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
    animation:sd-v44-phone-enter 800ms cubic-bezier(.19,1,.28,1) 750ms both;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-smith-theme] body.smith-public-auth :is(.v31a-phone-stage,.v4-auth-copy,.v31a-form-area) {
    animation:none!important;transform:none!important;opacity:1!important;
  }
}

/* Final small-screen layout guard: override desktop's later grid declaration. */
@media(max-width:600px) {
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    justify-items:center;
    width:100%;
    min-height:0;
  }
  html[data-smith-theme] body.smith-public-auth .v4-auth-copy {width:100%;min-width:0;}
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
    width:100%;min-height:410px;overflow:visible;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-orbit {display:none;}
}


/* Smith Digital V4.5 — center & balance Login/Daftar without touching backend.
   Keep V4.4 entrance animations (phone -> text -> form) and mobile-first order. */
@media (min-width: 951px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 56px));
    max-width: 1180px;
    min-height: calc(100svh - 78px);
    margin-inline: auto;
    padding: clamp(22px, 3vh, 38px) 0;
    grid-template-columns: minmax(0, 1.46fr) minmax(360px, 1fr);
    column-gap: clamp(22px, 2.4vw, 34px);
    align-items: center;
    align-content: center;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(232px, .88fr);
    align-items: center;
    gap: clamp(12px, 1.4vw, 21px);
    padding: 0;
    min-width: 0;
  }
  html[data-smith-theme] body.smith-public-auth .v4-auth-copy {
    width: 100%;
    min-width: 0;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {
    font-size: clamp(33px, 2.8vw, 43px) !important;
    line-height: 1.12 !important;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone-stage {
    min-height: 0;
    height: auto;
    padding: 0;
    justify-self: center;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone {
    box-sizing: border-box;
    width: min(280px, calc(min(var(--v4-auth-phone-height, 540px), 540px) * .51), 100%);
    height: min(var(--v4-auth-phone-height, 540px), 540px);
    max-width: 100%;
    border-radius: 43px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-form-area {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {
    width: 100%;
    max-width: 466px;
    padding: clamp(26px, 2.35vw, 34px);
    margin-inline: auto;
  }
}
@media (min-width: 951px) and (max-width: 1180px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1.43fr) minmax(340px, 1fr);
    column-gap: 18px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro {
    grid-template-columns: minmax(0, 1.16fr) minmax(202px, .82fr);
    gap: 12px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-intro h1 {
    font-size: clamp(30px, 3.2vw, 37px) !important;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-phone {
    width: min(230px, 100%);
    height: 442px;
    border-radius: 39px;
  }
  html[data-smith-theme] body.smith-public-auth .v31a-form-card {
    padding: 26px;
  }
}
@media (min-width: 951px) and (max-height: 740px) {
  html[data-smith-theme] body.smith-public-auth main.v31a-auth {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 22px;
  }
}
