/* BDS-01 Prototype: Sign-in page (#/signin) rebranded after the centered cobalt-backdrop + crisp white auth card
   design language (Overpass typography, #0061D4 primary CTA, 50px inputs, floating white logo mark, EN/ID toggle). */
body[data-auth="out"] .top, body[data-auth="out"] #main { display: none; }
#signin[hidden] { display: none; }

#signin.g.signin {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #22253F;
  color: #373B49;
  font-family: Overpass, Carlito, Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

/* Full-bleed Cobalt Blue architectural filing-drawer backdrop */
.g.signin .si-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 36px;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 155, 255, 0.42) 0%, transparent 52%),
    radial-gradient(circle at 82% 80%, rgba(0, 62, 168, 0.72) 0%, transparent 56%),
    linear-gradient(135deg, #0057C8 0%, #0061D4 46%, #003A8C 100%);
  overflow: hidden;
}

/* Subtle architectural drawer / filing-cabinet diagonal grid motif (zero external assets, zero third-party logos) */
.g.signin .si-hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  opacity: 0.22;
  transform: rotate(-14deg) scale(1.08);
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.22) 0 2px, transparent 2px 136px),
    linear-gradient(to right, rgba(4,20,58,0.45) 0 3px, transparent 3px 340px),
    radial-gradient(closest-side, rgba(255,255,255,0.12), transparent);
  background-size: 340px 138px, 340px 138px, 180px 54px;
  filter: blur(1.5px);
}
.g.signin .si-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 25, 68, 0.10) 0%, rgba(8, 25, 68, 0.34) 100%);
}

/* Floating white logo above card */
.g.signin .si-brand-float {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.g.signin .si-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(4, 18, 54, 0.28));
}
.g.signin .si-logo img {
  height: 76px;
  width: auto;
  display: block;
}

/* Centered elevated white card (.unauth-content aesthetic) */
.g.signin .si-card {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  min-height: 610px;
  background: #FFFFFF;
  color: #373B49;
  border-radius: 5px;
  box-shadow: 5px 5px 22px 12px rgba(8, 20, 52, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 22px 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card top utility bar */
.g.signin .si-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid #F2F3F7;
}
.g.signin .si-logopick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #717688;
}
.g.signin .si-logopick-btns {
  display: inline-flex;
  border: 1px solid #E5E7EF;
  border-radius: 5px;
  overflow: hidden;
  background: #F8F9FC;
}
.g.signin .si-logopick-btns button {
  height: 28px;
  padding: 0 9px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #717688;
  cursor: pointer;
}
.g.signin .si-logopick-btns button + button { border-left: 1px solid #E5E7EF; }
.g.signin .si-logopick-btns button:hover { color: #0061D4; background: #FFFFFF; }
.g.signin .si-logopick-btns button[aria-pressed="true"] { background: #0061D4; color: #FFFFFF; }
.g.signin .si-logopick a {
  color: #0061D4;
  font-weight: 600;
  margin-left: 4px;
}
.g.signin .si-logopick a:hover { text-decoration: underline; }

.g.signin .si-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.g.signin .si-tour-prompt {
  font-size: 13px;
  color: #717688;
}
.g.signin .si-tour-prompt b { color: #373B49; font-weight: 600; }
.g.signin .si-tour-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #E5E7EF;
  border-radius: 5px;
  background: #FFFFFF;
  color: #0061D4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.g.signin .si-tour-btn:hover { border-color: #247FE0; background: #F7FAFF; }

.g.signin .si-sharebox { position: relative; }
.g.signin .si-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #E5E7EF;
  border-radius: 5px;
  background: #FFFFFF;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #52586A;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.g.signin .si-share .ic { width: 15px; height: 15px; }
.g.signin .si-share:hover, .g.signin .si-share[aria-expanded="true"] { border-color: #247FE0; color: #0061D4; }
.g.signin .si-sharemenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  width: 264px;
  padding: 6px;
  border: 1px solid #E5E7EF;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(34, 37, 63, 0.16);
}
.g.signin .si-sharemenu[hidden] { display: none; }
.g.signin .si-shareitem {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #373B49;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.g.signin .si-shareitem:hover { background: #F2F3F7; color: #0061D4; }
.g.signin .si-shareitem.done { color: #0F7A4D; }
.g.signin .si-sharelink {
  margin: 6px 0 0;
  padding: 8px 10px 4px;
  border-top: 1px solid #E5E7EF;
  font-size: 12px;
  line-height: 1.35;
  color: #717688;
  overflow-wrap: anywhere;
  user-select: all;
}

/* 2-language segmented switch (EN | ID only) */
.g.signin .si-lang {
  display: inline-flex;
  flex: none;
  border: 1px solid #E5E7EF;
  border-radius: 5px;
  overflow: hidden;
  background: #FFFFFF;
}
.g.signin .si-lang button {
  height: 38px;
  min-width: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #717688;
  background: none;
  border: 0;
  cursor: pointer;
}
.g.signin .si-lang button + button { border-left: 1px solid #E5E7EF; }
.g.signin .si-lang button:hover { color: #0061D4; background: #F7FAFF; }
.g.signin .si-lang button[aria-pressed="true"] { background: #0061D4; color: #FFFFFF; }

/* Card Main Body: Left Auth Form + Right Demo Directory */
.g.signin .si-body {
  flex: 1;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  padding: 24px 8px 18px;
}

.g.signin .si-authcol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}
.g.signin .si-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  color: #373B49;
}
.g.signin .si-welcome {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: #717688;
}
.g.signin .si-welcome b { color: #373B49; font-weight: 600; }
.g.signin .si-firm {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #0061D4;
  font-weight: 600;
  overflow: hidden;
}
.g.signin .si-firms { display: flex; flex-wrap: wrap; margin-left: -8px; }
.g.signin .si-firms span { padding: 0 8px; border-left: 1px solid #CBD0E0; }

.g.signin .si-form {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
.g.signin .si-form label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  padding: 0 0 7px;
  line-height: 1.4;
}
.g.signin .si-form label + input,
.g.signin .si-pw-wrap {
  margin-bottom: 16px;
}
.g.signin .si-form input {
  height: 50px;
  width: 100%;
  padding: 4px 12px;
  border: 1px solid #D9D9D9;
  border-radius: 5px;
  background: #FFFFFF;
  color: #373B49;
  font: inherit;
  font-size: 14px;
  transition: border-color 140ms;
}
.g.signin .si-form input::placeholder { color: #BFBFBF; }
.g.signin .si-form input:hover { border-color: #247FE0; }
.g.signin .si-form input:focus { border-color: #0061D4; outline: none; box-shadow: 0 0 0 2px rgba(0, 97, 212, 0.14); }

.g.signin .si-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.g.signin .si-pw-wrap input { padding-right: 42px; margin-bottom: 0; }
.g.signin .si-pw-toggle {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #9AA0B3;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.g.signin .si-pw-toggle:hover { color: #373B49; background: #F2F3F7; }
.g.signin .si-pw-toggle svg { width: 17px; height: 17px; }

.g.signin .si-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 5px;
  background: #F9E6E6;
  color: #C80000;
  font-size: 13px;
  font-weight: 600;
}
.g.signin .si-error[hidden] { display: none; }

.g.signin .si-terms {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  color: #717688;
}
.g.signin .si-terms code {
  font-family: inherit;
  font-weight: 600;
  color: #373B49;
  background: #F2F3F7;
  padding: 2px 6px;
  border-radius: 4px;
  user-select: all;
}

.g.signin .si-go {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 5px;
  background: #0061D4;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.g.signin .si-go:hover { background: #247FE0; color: #FFFFFF; }
.g.signin .si-go:active { background: #0048AD; color: #FFFFFF; }
.g.signin .si-go[disabled] { background: #F2F3F7; color: #9AA0B3; cursor: progress; }

/* Right Demo Directory inside the card */
.g.signin .si-demo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 440px;
  background: #F8F9FC;
  border: 1px solid #E5E7EF;
  border-radius: 6px;
  padding: 14px 16px 10px;
}
.g.signin .si-demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.g.signin .si-demo h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #717688;
}
.g.signin .si-demo-sub {
  font-size: 12px;
  color: #9AA0B3;
}
.g.signin .si-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.g.signin .si-firmgroup + .si-firmgroup {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EF;
}
.g.signin .si-firmgroup h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #22253F;
}
.g.signin .si-level { margin-top: 6px; }
.g.signin .si-level h4 {
  margin: 0 0 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: #717688;
}
.g.signin .si-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
}
.g.signin .si-acct {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px 5px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  font: inherit;
  text-align: left;
  color: #373B49;
  cursor: pointer;
}
.g.signin .si-acct:hover { background: #FFFFFF; border-color: #E5E7EF; }
.g.signin .si-acct.cur { background: #E6F3FF; border-color: #0061D4; }
.g.signin .si-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.22; }
.g.signin .si-who b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g.signin .si-who small { font-size: 11.5px; color: #717688; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card Bottom Footer Row (.unauth-content-footer style) */
.g.signin .si-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #F2F3F7;
  font-size: 12px;
  color: #9BA0B1;
}
.g.signin .si-foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.g.signin .si-foot-links a,
.g.signin .si-foot-links button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #0061D4;
  cursor: pointer;
  text-decoration: none;
}
.g.signin .si-foot-links a:hover,
.g.signin .si-foot-links button:hover {
  text-decoration: underline;
  color: #0048AD;
}
.g.signin .si-dot { color: #CBD0E0; }

/* Six capability points at head of #siParts */
.g.signin .si-points {
  list-style: none;
  margin-top: 0;
  margin-bottom: clamp(28px, 5vh, 44px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 36px;
}
.g.signin .si-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.g.signin .si-points .ic { width: 18px; height: 18px; margin-top: 2px; color: #0061D4; }
.g.signin .si-points b { color: var(--ink); }

/* Responsive tablet & mobile */
@media (max-width: 900px) {
  .g.signin .si-hero { padding: 20px 14px 28px; justify-content: flex-start; }
  .g.signin .si-logo img { height: 62px; }
  .g.signin .si-card { padding: 18px 16px 16px; min-height: 0; }
  .g.signin .si-body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px 0 14px; }
  .g.signin .si-authcol { max-width: 100%; }
  .g.signin .si-demo { max-height: 320px; }
  .g.signin .si-tour-prompt { display: none; }
  .g.signin .si-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
}
@media (max-width: 600px) {
  .g.signin .si-people { grid-template-columns: minmax(0, 1fr); }
  .g.signin .si-points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .g.signin .si-form input { font-size: 16px; }
}

/* Firm short name in top bar */
.top .si-firmname {
  flex: none;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #D1D6E8;
  background: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
}
.top .si-firmname:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.top .si-firmname:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.top .si-firmname:empty { display: none; }
.top .who b .lastn { font-weight: inherit; }

@media (max-width: 1439px) {
  .top .appid { padding: 0 6px; margin-right: 0; }
  .top .vtabs a { padding: 0 8px; }
  .top .who b .lastn { display: none; }
  .top .who { padding-right: 6px; }
  .top { gap: 8px; padding: 0 12px; }
}
@media (max-width: 760px) {
  .top .vtabs { flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top .vtabs::-webkit-scrollbar { display: none; }
  .top .sp { flex: 0 0 0; }
  .top .appid b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .appid img { display: block; }
  .top .vtabs a { padding: 0 6px; font-size: 13px; gap: 5px; }
  .top .si-firmname { max-width: 8ch; padding: 3px 6px; }
  .top .seg3 button { padding: 5px 6px; }
  .top { gap: 6px; padding: 0 8px; }
}
