@font-face {
  font-family: "Segoe UI Brand";
  src: url("../fonts/SegoeUI.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #00b6aa;
  --teal-hover: #009e94;
  --teal-dark: #087b6d;
  --teal-deep: #007276;
  --lime: #cad92a;
  --ink: #173f3a;
  --body: #696a69;
  --muted: #7b8b88;
  --line: #dfe7e4;
  --soft: #f4f8f7;
  --danger: #c00000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI Brand", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: flex;
  min-height: 100vh;
}

.hero {
  position: relative;
  flex: 0 0 63.5%;
  min-height: 100vh;
  padding: 42px 72px 30px;
  background: url("../img/hero.png") 62% bottom / cover no-repeat;
  overflow: hidden;
}

.brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  height: 62px;
  width: auto;
  display: block;
}

.brand-sub {
  margin: -2px 0 0 28%;
  font-family: "Segoe UI Brand", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: var(--teal-dark);
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 52px;
  background: rgba(8, 123, 109, 0.35);
}

.brand-product {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Segoe UI Brand", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.2px;
}

.brand-version {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-family: "Segoe UI Brand", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin-top: 84px;
}

.hero-copy h1 {
  margin: 0;
}

.hero-copy h1 span {
  display: block;
  font-family: "Segoe UI Brand", "Segoe UI", sans-serif;
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.14;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.8px;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  color: #3f5c57;
}

.accent-bar {
  display: flex;
  width: 160px;
  height: 8px;
  margin-top: 26px;
  border-radius: 999px;
  overflow: hidden;
}

.accent-bar span:first-child {
  width: 72%;
  background: var(--teal);
}

.accent-bar span:last-child {
  width: 28%;
  background: var(--lime);
}

/* Entrance teks hero: turun lalu muncul seperti diketik cepat (typewriter via JS). */
.hero-copy h1 > span,
.hero-copy > p,
.hero-copy .accent-bar { opacity: 0; }
.hero-copy h1 > span.tw-target,
.hero-copy > p.tw-target { opacity: 1; }
.tw-target { position: relative; transform: translateY(-16px); }
.tw-target.tw-drop { transform: translateY(0); transition: transform .55s cubic-bezier(.22, .7, .2, 1); }
.tw-ghost { visibility: hidden; }
.tw-live { position: absolute; inset: 0; }
.tw-live.tw-caret::after {
  content: "|";
  margin-left: 1px;
  color: #0b5f57;
  font-weight: 800;
  animation: twCaret .6s steps(1) infinite;
}
@keyframes twCaret { 50% { opacity: 0; } }
.hero-copy .accent-bar.tw-show { opacity: 1; transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 > span,
  .hero-copy > p,
  .hero-copy .accent-bar { opacity: 1 !important; }
  .tw-target { transform: none !important; }
}

/* Animasi wajah ilustrasi hero: kedip mata + mulut buka/tutup, loop 5 detik. */
.hero-faces {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.face-lid,
.face-mouth {
  position: absolute;
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
}
.face-lid {
  background: #f3c8a3;
  transform: scaleY(0);
  animation: epBlink 5s infinite;
}
.face-mouth {
  background: #7a2a2a;
  transform: scaleY(.15);
  animation: epTalk 5s infinite;
}
@keyframes epBlink {
  0%, 84% { transform: scaleY(0); }
  86%, 88% { transform: scaleY(1); }
  90%, 100% { transform: scaleY(0); }
}
@keyframes epTalk {
  0%, 4% { transform: scaleY(.15); }
  8% { transform: scaleY(1); }
  12% { transform: scaleY(.2); }
  16% { transform: scaleY(1); }
  20% { transform: scaleY(.2); }
  24% { transform: scaleY(1); }
  28%, 100% { transform: scaleY(.15); }
}
@media (prefers-reduced-motion: reduce) {
  .face-lid { animation: none; transform: scaleY(0); }
  .face-mouth { animation: none; transform: scaleY(.15); }
}

.hero-features {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 72px;
  background: var(--teal-dark);
  color: var(--white);
}

.hero-features::before {
  content: "";
  position: absolute;
  top: -22px;
  left: -5%;
  width: 110%;
  height: 46px;
  background: var(--teal-dark);
  border-radius: 50%;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 13px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.hero-feature strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-feature small {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.feature-sep {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.4);
}

.panel {
  position: relative;
  flex: 1 1 36.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: #eef8f7 url("../img/background.png") right bottom / cover no-repeat;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}
