* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --blue: var(--sisgedo-color-primary);
  --blue-d: var(--sisgedo-color-primary-strong);
  --blue-soft: var(--sisgedo-color-primary-soft);
  --green: var(--sisgedo-color-success);
  --ink: var(--sisgedo-color-ink);
  --muted: var(--sisgedo-color-muted);
  --muted-2: var(--sisgedo-color-muted-soft);
  --line: var(--sisgedo-color-border);
  --card-bg: var(--sisgedo-color-surface);
  --card-ink: var(--sisgedo-color-text);
  --field-bg: var(--sisgedo-color-page-soft);
  --field-line: var(--sisgedo-color-border-soft);
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--sisgedo-font-sans);
  color: var(--sisgedo-color-on-dark);
  overflow: hidden;
  background: radial-gradient(
    1100px 640px at 16% 8%,
    #10233f 0%,
    #0a1424 55%,
    #070f1c 100%
  );
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.3vh 2vw;
}
.shell {
  width: 100%;
  max-width: 1120px;
  height: 100%;
  max-height: 620px;
  display: flex;
  align-items: stretch;
}
.left {
  flex: 1 1 47%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0e2140 0%, #102246 55%, #12294f 100%);
  border-radius: var(--sisgedo-radius-xl) 0 0 var(--sisgedo-radius-xl);
  padding: clamp(26px, 3.4vh, 40px) clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .leaf {
  width: 28px;
  height: 28px;
}
.brand b {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--sisgedo-color-surface);
}
.left .kicker {
  margin-top: clamp(18px, 3.2vh, 40px);
  color: var(--sisgedo-color-primary-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
}
.left h1 {
  color: var(--sisgedo-color-surface);
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  margin-top: 7px;
}
.rule {
  width: 58px;
  height: 4px;
  border-radius: 3px;
  background: var(--green);
  margin: clamp(12px, 2vh, 18px) 0;
}
.left h2 {
  color: var(--sisgedo-color-on-dark);
  font-size: 15.5px;
  font-weight: 700;
}
.left p.desc {
  color: var(--sisgedo-color-on-dark-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 10px;
  max-width: 340px;
}
.building-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.building {
  width: 90%;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  display: block;
}
.building-fallback {
  display: none;
}
.features {
  margin-top: auto;
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  position: relative;
  z-index: 2;
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--sisgedo-color-dark-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feature .ttl {
  color: var(--sisgedo-color-on-dark);
  font-weight: 700;
  font-size: 12.5px;
}
.feature .sub {
  color: var(--sisgedo-color-on-dark-soft);
  font-size: 10.8px;
  line-height: 1.3;
  margin-top: 2px;
}
.right {
  flex: 1 1 53%;
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: var(--sisgedo-radius-xl);
  margin: 0;
  box-shadow: var(--sisgedo-shadow-panel);
  padding: clamp(12px, 1.5vh, 18px) clamp(30px, 3.4vw, 50px)
    clamp(12px, 1.5vh, 18px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.theme {
  position: absolute;
  top: 15px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
}
.theme a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 3px;
  border-radius: 6px;
}
.theme a.active {
  color: var(--ink);
  font-weight: 600;
}
.theme .sep {
  color: var(--sisgedo-color-border);
}
.logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--sisgedo-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(2px, 1vh, 10px) auto 0;
  box-shadow: 0 6px 16px -8px rgba(34, 197, 94, 0.5);
}
.logo-circle svg {
  width: 24px;
  height: 24px;
}
.welcome {
  text-align: center;
  margin-top: 7px;
}
.welcome h3 {
  font-size: clamp(19px, 2.3vh, 23px);
  font-weight: 800;
  color: var(--ink);
}
.welcome p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
form.login {
  margin-top: clamp(8px, 1.3vh, 14px);
}
.field {
  margin-bottom: clamp(6px, 1vh, 11px);
}
.field label.lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sisgedo-color-text);
  margin-bottom: 6px;
}
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 0 13px;
  height: clamp(40px, 4.6vh, 46px);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.input:focus-within {
  border-color: var(--blue-soft);
  box-shadow: var(--sisgedo-shadow-focus);
}
.input svg.lead {
  flex: 0 0 18px;
  color: var(--sisgedo-color-muted-soft);
}
.input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--card-ink);
  height: 100%;
}
.input input:-webkit-autofill,
.input input:-webkit-autofill:hover,
.input input:-webkit-autofill:focus,
.input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--card-ink) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  caret-color: var(--card-ink);
  transition: background-color 99999s ease-in-out 0s;
}
.input input:autofill {
  -webkit-text-fill-color: var(--card-ink);
  box-shadow: 0 0 0 1000px var(--field-bg) inset;
}
.input .eye {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--sisgedo-color-muted-soft);
  display: flex;
  padding: 4px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 clamp(9px, 1.3vh, 14px);
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sisgedo-color-text);
  cursor: pointer;
  user-select: none;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.forgot {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.forgot:hover {
  text-decoration: underline;
}
.btn-primary {
  width: 100%;
  height: clamp(42px, 4.8vh, 48px);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    var(--sisgedo-color-primary-soft),
    var(--sisgedo-color-primary-strong)
  );
  color: var(--sisgedo-color-surface);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.7);
  transition: filter 0.15s;
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.or {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted-2);
  font-size: 12.5px;
  margin: clamp(9px, 1.3vh, 14px) 0 clamp(8px, 1.1vh, 12px);
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.socials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 11px;
}
.social {
  height: clamp(40px, 4.4vh, 44px);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--sisgedo-color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--sisgedo-color-text);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.social:hover {
  background: var(--sisgedo-color-page-soft);
  border-color: var(--sisgedo-color-border-strong);
}
.notice {
  margin-top: clamp(9px, 1.3vh, 13px);
  background: var(--sisgedo-color-info-bg);
  border: 1px solid var(--sisgedo-color-info-border);
  border-radius: 11px;
  padding: clamp(8px, 1.2vh, 12px) 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.notice svg {
  flex: 0 0 19px;
  color: var(--blue);
  margin-top: 1px;
}
.notice .nt {
  color: var(--sisgedo-color-info-title);
  font-weight: 700;
  font-size: 13.5px;
}
.notice .nb {
  color: var(--sisgedo-color-info-text);
  font-size: 12.2px;
  line-height: 1.45;
  margin-top: 2px;
}
.alert-error {
  display: none;
  margin-bottom: 12px;
  background: var(--sisgedo-color-danger-bg);
  color: var(--sisgedo-color-danger-text);
  border: 1px solid var(--sisgedo-color-danger-border);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13px;
  text-align: center;
}
.footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 6px 20px 9px;
  font-size: 12px;
  color: var(--sisgedo-color-muted);
}
.footer .sep {
  margin: 0 12px;
  color: var(--sisgedo-color-on-dark-soft);
}
.right.dark {
  --card-bg: var(--sisgedo-color-dark-surface);
  --card-ink: var(--sisgedo-color-on-dark);
  --line: var(--sisgedo-color-dark-border);
  --muted: var(--sisgedo-color-on-dark-muted);
  --muted-2: var(--sisgedo-color-on-dark-soft);
  --field-bg: var(--sisgedo-color-dark-surface-2);
  --field-line: var(--sisgedo-color-dark-border-strong);
  background: var(--sisgedo-color-dark-surface);
  color: var(--sisgedo-color-on-dark);
  border: 1px solid var(--sisgedo-color-dark-panel-border);
}
.right.dark .welcome h3 {
  color: var(--sisgedo-color-surface);
}
.right.dark .field label.lbl {
  color: #c3d1e6;
}
.right.dark .input input {
  color: #eaf1fb;
}
.right.dark .social {
  background: var(--sisgedo-color-dark-surface-2);
  color: var(--sisgedo-color-on-dark);
  border-color: var(--sisgedo-color-dark-border-strong);
}
.right.dark .social:hover {
  background: #182b47;
}
.right.dark .notice {
  background: #122a49;
  border-color: #1e3c63;
}
.right.dark .remember {
  color: #b7c6dc;
}
.right.dark .logo-circle {
  border-color: #28405f;
}
@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .shell {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  .left {
    border-radius: 20px 20px 0 0;
  }
  .right {
    border-radius: 0 0 20px 20px;
    margin: 0;
  }
  .building-wrap {
    display: none;
  }
  .building-fallback {
    display: block;
    width: 90%;
    margin: 0 auto;
    opacity: 0.6;
  }
}
