/* "/" and "/login" unauthenticated landing: banner on the left, App / Daftar / Lupa Password tiles + forms on the right.
   Scoped to #login.landing so the v1 dashboard (#app) styles stay untouched. */
#login.landing {
  --ld-navy: #004182;
  --ld-ink: #0f1b33;
  --ld-muted: #64708a;
  --ld-line: #dfe4ec;
  --ld-field: #cfd6e2;
  --ld-primary: #004182;
  --ld-primary-hover: #0a5199;
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #fff;
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ld-ink);
}
/* wide screens: two equal halves, banner fixed on the left while the right half scrolls */
#login.landing .ld-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* left: banner */
#login.landing .ld-art {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ld-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#login.landing .ld-art img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* right: auth column */
#login.landing .ld-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #fff;
  padding: 40px 32px 20px;
}
/* auto margins center the panel vertically in the half; the footer stays at the bottom */
#login.landing .ld-panel { width: min(400px, 100%); margin: auto 0; }
#login.landing .ld-brand { display: flex; justify-content: center; margin-bottom: 18px; }
#login.landing .ld-brand img { width: 120px; height: auto; display: block; }
#login.landing h1 { font-size: 24px; font-weight: 800; text-align: center; margin: 0 0 6px; letter-spacing: 0; }
#login.landing .ld-sub { text-align: center; color: var(--ld-muted); font-size: 14px; margin: 0 0 24px; }

/* tiles: icon + label, one selected */
#login.landing .ld-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
#login.landing .ld-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 0; height: auto;
  padding: 18px 8px 16px;
  background: #fff;
  color: var(--ld-ink);
  border: 1px solid var(--ld-line);
  border-radius: 12px;
  box-shadow: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  white-space: normal;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#login.landing .ld-tile .ld-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f1f4f8;
  color: var(--ld-muted);
  transition: background .15s ease, color .15s ease;
}
#login.landing .ld-tile .ld-ico svg { width: 22px; height: 22px; }
#login.landing .ld-tile b { font-weight: 700; }
#login.landing .ld-tile:hover { border-color: #c5cfdc; background: #fafbfd; }
#login.landing .ld-tile[aria-selected="true"] { border-color: var(--ld-primary); background: #f3f7fc; color: var(--ld-primary); box-shadow: inset 0 0 0 1px var(--ld-primary); }
#login.landing .ld-tile[aria-selected="true"] .ld-ico { background: var(--ld-primary); color: #fff; }
#login.landing .ld-tile:focus-visible { outline: 2px solid var(--ld-primary); outline-offset: 2px; }

/* forms */
#login.landing .ld-pane[hidden] { display: none; }
#login.landing .ld-card { text-align: left; }
#login.landing .ld-card h2 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
#login.landing .ld-card > p { color: var(--ld-muted); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }
#login.landing label { color: var(--ld-ink); font-weight: 700; font-size: 13px; }
#login.landing input:not([type="checkbox"]) {
  min-height: 46px;
  border: 1px solid var(--ld-field);
  border-radius: 8px;
  font-size: 14px;
}
#login.landing input[type="file"] { padding: 10px 12px; }
#login.landing input:focus { outline: none; border-color: var(--ld-primary); box-shadow: 0 0 0 3px rgba(0, 65, 130, .12); }
#login.landing .ld-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
#login.landing .ld-check input { width: auto; min-height: 0; margin: 0; }
#login.landing .ld-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  background: var(--ld-primary);
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  border: 0;
}
#login.landing .ld-btn:hover { background: var(--ld-primary-hover); }
#login.landing .ld-link {
  display: inline-block;
  background: none; box-shadow: none; border: 0;
  min-height: 0; padding: 0;
  color: var(--ld-primary); font-weight: 600; font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-family: inherit;
}
#login.landing .ld-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
#login.landing .ld-alt { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--ld-muted); }
#login.landing .ld-app { text-align: center; padding: 8px 0 4px; }
#login.landing .ld-app p { color: var(--ld-muted); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
/* register: 3 steps (Akun / Detail / Foto) */
#login.landing .ld-steps { list-style: none; display: flex; margin: 0 0 24px; padding: 0; counter-reset: none; }
#login.landing .ld-steps li {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ld-muted);
}
#login.landing .ld-steps li + li::before {
  content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px;
  background: var(--ld-line); z-index: 0;
}
#login.landing .ld-steps span {
  position: relative; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--ld-line);
  font-size: 13px; font-weight: 800; color: var(--ld-muted);
}
#login.landing .ld-steps li.is-done + li::before,
#login.landing .ld-steps li.is-active::before { background: var(--ld-primary); }
#login.landing .ld-steps li.is-active, #login.landing .ld-steps li.is-done { color: var(--ld-ink); }
#login.landing .ld-steps li.is-active span { border-color: var(--ld-primary); color: var(--ld-primary); }
#login.landing .ld-steps li.is-done span { background: var(--ld-primary); border-color: var(--ld-primary); color: #fff; }
#login.landing .ld-step[hidden] { display: none; }
#login.landing .ld-nav { display: flex; gap: 12px; margin-top: 8px; }
#login.landing .ld-nav .ld-btn { flex: 1; }
#login.landing .ld-btn-ghost { background: #fff; color: var(--ld-ink); border: 1px solid var(--ld-line); }
#login.landing .ld-btn-ghost:hover { background: #f7f9fc; border-color: #c5cfdc; }

/* profile photo picker */
#login.landing .ld-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
#login.landing .ld-photo { text-align: center; }
#login.landing .ld-photo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0;
  padding: 28px 16px 24px;
  border: 1.5px dashed #c5cfdc;
  border-radius: 12px;
  background: #fafbfd;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
#login.landing .ld-photo-drop:hover, #login.landing .ld-photo-drop.is-over { border-color: var(--ld-primary); background: #f3f7fc; }
#login.landing .ld-photo-drop:focus-visible { outline: 2px solid var(--ld-primary); outline-offset: 2px; }
#login.landing .ld-avatar {
  position: relative;
  width: 112px; height: 112px; border-radius: 50%;
  margin-bottom: 10px;
  display: grid; place-items: center;
  background: #eef2f7;
  color: #a3aec0;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--ld-line);
}
#login.landing .ld-avatar > svg { width: 56px; height: 56px; }
#login.landing .ld-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
#login.landing .ld-avatar img[hidden] { display: none; }
#login.landing .ld-avatar-cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ld-primary); color: #fff;
  border: 3px solid #fff;
}
#login.landing .ld-avatar-cam svg { width: 16px; height: 16px; }
#login.landing .ld-photo-drop b { font-size: 15px; font-weight: 700; color: var(--ld-ink); }
#login.landing .ld-photo-drop small { font-size: 12.5px; color: var(--ld-muted); line-height: 1.4; max-width: 260px; word-break: break-word; }
#login.landing .ld-photo.has-photo .ld-photo-drop { border-style: solid; border-color: var(--ld-line); background: #fff; }
#login.landing .ld-photo.has-photo .ld-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ld-primary); }
#login.landing .ld-photo-drop b[hidden], #login.landing .ld-photo-drop small[hidden] { display: none; }
#login.landing .ld-photo-actions { display: flex; justify-content: center; gap: 20px; margin-top: 4px; }
#login.landing .ld-photo-actions[hidden] { display: none; }
#login.landing .ld-pbtn {
  min-height: 0; padding: 2px 0;
  border: 0; border-radius: 0;
  background: none; color: var(--ld-primary);
  font-family: inherit; font-size: 14px; font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}
#login.landing .ld-pbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
#login.landing .ld-pbtn:focus-visible { outline: 2px solid var(--ld-primary); outline-offset: 2px; border-radius: 2px; }
#login.landing .ld-pbtn-danger { color: var(--red, #d93025); }

/* register result card: markup is injected by main.js (showMessageCard), restyled here to match the landing */
#login.landing #msg-card { text-align: center; padding: 8px 0 0 !important; }
#login.landing #msg-icon { font-size: 30px !important; margin: 0 auto 16px !important; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #eef7f1; }
#login.landing #msg-icon .fa-circle-xmark { color: var(--red, #d93025); }
#login.landing #msg-icon:has(.fa-circle-xmark) { background: #fdeeee; }
#login.landing #msg-title { font-size: 20px; font-weight: 800; letter-spacing: 0; margin: 0 0 8px !important; }
#login.landing #msg-body { color: var(--ld-muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px !important; }
#login.landing #msg-actions .app-links-box { margin: 0 !important; padding: 0; background: none; border: 0; border-radius: 0; }
#login.landing #msg-actions .app-btn {
  min-height: 48px; padding: 0 16px;
  border: 0; border-radius: 8px;
  background: var(--ld-primary);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0;
  text-shadow: none; box-shadow: none; filter: none; transform: none;
}
#login.landing #msg-actions .app-btn:hover { background: var(--ld-primary-hover); }
#login.landing #msg-actions .app-btn-icon { display: none; }
#login.landing #msg-actions button.ghost {
  width: 100%; min-height: 48px; margin-top: 12px !important;
  background: #fff; color: var(--ld-ink);
  border: 1px solid var(--ld-line); border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  box-shadow: none;
}
#login.landing #msg-actions button.ghost:hover { background: #f7f9fc; border-color: #c5cfdc; }

#login.landing .ld-foot {
  width: min(400px, 100%);
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--ld-line);
  text-align: center;
  font-size: 12.5px;
  color: var(--ld-muted);
}

/* unmarked link to /login at the end of the footer line on the Lupa Password tab: same color as the background */
/* kept in the line on every tab (visibility, not display) so the footer text never shifts */
#login.landing .ld-secret { display: inline; color: #fff; text-decoration: none; cursor: default; }
#login.landing .ld-secret[hidden] { visibility: hidden; }

@media (max-width: 900px) {
  #login.landing .ld-shell { grid-template-columns: 1fr; }
  #login.landing .ld-art { display: none; }
  #login.landing .ld-side { padding: 32px 16px 16px; }
}
@media (max-width: 420px) {
  #login.landing .ld-tiles { gap: 8px; }
  #login.landing .ld-tile { padding: 14px 4px 12px; }
  #login.landing .ld-tile .ld-ico { width: 38px; height: 38px; }
}
