/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #F5F6F7;
  --panel: #E8EBED;
  --ink: #1D2730;
  --line: #AEB7BE;
  --accent: #27475A;
  --action: #27475A;
  --action-ink: #FFFFFF;
  --focus: #27475A;
  --font: 'Hanken Grotesk', 'Segoe UI', Arial, sans-serif;
}

@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('fonts/hanken-grotesk-600.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
input, button { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }

.alert { font-weight: 600; }
.trial { display: inline-block; padding: 10px 0; }
.more summary { cursor: pointer; padding: 10px 0; }
.more label { display: block; }
.more input { width: 100%; padding: 10px 12px; margin-top: 4px; }

/* Halaman setelah login: alogin, status, logout, error */
.sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh; min-height: 100svh;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 32px 20px;
}
.sheet h1 { font-size: 44px; line-height: 1.02; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.action {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: var(--action);
  color: var(--action-ink);
  transition: transform .15s ease;
}
.action:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.kalem { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; animation: muncul .4s ease both; }
@keyframes muncul { from { opacity: 0; } }
.utama { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 28px; }
.masuk { margin: auto 0; width: 100%; max-width: 480px; }
.merek { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
}
h1 { margin-top: 28px; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.isi { margin-top: 8px; }
.form { display: grid; gap: 6px; margin-top: 18px; }
label { font-size: 16px; font-weight: 600; }
.form input:not([type=hidden]) {
  width: 100%; height: 46px; margin-bottom: 8px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 17px;
}
.form input:not([type=hidden]):focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.action { border-radius: 6px; font-size: 17px; font-weight: 600; padding: 13px; margin-top: 4px; transition: background-color .15s ease, transform .15s ease; }
.action:hover { background: #1D3747; }
.alert { color: #A3261B; font-size: 16px; line-height: 1.3; margin-bottom: 4px; }

.bantuan { padding: 22px 20px 26px; background: var(--panel); }
h2 { font-size: 18px; font-weight: 600; }
.bantuan p { margin-top: 6px; }
.bantuan .facts { margin-top: 14px; gap: 6px; font-size: 16px; }

@media (min-width: 900px) {
  .kalem { flex-direction: row; }
  .utama { flex: 1.7; padding: 40px 64px; }
  .merek { font-size: 19px; }
  .logo { width: 44px; height: 44px; font-size: 16px; }
  .masuk { padding-bottom: 44px; }
  h1 { margin-top: 0; font-size: 50px; line-height: 1.05; }
  .isi { margin-top: 14px; font-size: 19px; }
  .form { margin-top: 30px; }
  .form input:not([type=hidden]) { height: 52px; margin-bottom: 14px; }
  .action { justify-self: start; padding: 15px 44px; }
  .bantuan { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 64px 40px 48px; }
  h2 { font-size: 22px; }
}

.sheet h1 { margin: 0; font-size: 38px; }
.facts div { padding-bottom: 8px; }
.sheet .facts div { background: var(--panel); padding: 10px 12px; border-radius: 6px; }
.sheet .action { align-self: stretch; }
