/* Halaman depan Sabarjaya.
   Aturan rupa: sudut siku saja, garis 1px, huruf tegak biasa (400), paling tebal 500. */

@font-face {
  font-family: "Plex";
  src: url("font/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("font/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --kertas: #ffffff;
  --latar: #eef1ee;
  --garis: #c5cdc7;
  --tinta: #17211c;
  --redup: #5d6a63;
  --hijau: #2f6449;
  --hijau-tua: #244e39;
  --biru: #3f6fa3;      /* tinta cetak dot matrix di nota pemasok */
  --merah: #b3372f;     /* cap */

  --tepi: clamp(20px, 5vw, 72px);
  --ruas: clamp(20px, 3.2vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--latar);
  color: var(--tinta);
  font-family: "Plex", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  display: flex;
}

p, h1, h2 { margin: 0; font-weight: 400; }

/* Lembar: satu bidang kertas bergaris tipis, setinggi layar */
.lembar {
  flex: 1;
  margin: 0 var(--tepi);
  background: var(--kertas);
  border-left: 1px solid var(--garis);
  border-right: 1px solid var(--garis);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.kepala, .kaki {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px var(--ruas);
  font-size: 14px;
  color: var(--redup);
}
.kepala { border-bottom: 1px solid var(--garis); }
.kaki   { border-top: 1px solid var(--garis); }
.jam { color: var(--tinta); }

/* Isi: merek di kiri, formulir di kanan, dipisah satu garis tegak */
.isi {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  min-height: 0;
}

.merek {
  padding: var(--ruas);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--garis);
  min-width: 0;
}
.merek h1 {
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--hijau);
  padding-bottom: 0.32em;
  border-bottom: 1px solid var(--hijau);
}
.merek h1 .sjum {
  display: block;
  font-size: 1.5em;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.04em;
}
.usaha {
  margin-top: 18px;
  font-size: 18px;
}
.keterangan {
  margin-top: 4px;
  max-width: 34ch;
  color: var(--redup);
}

.masuk {
  padding: var(--ruas);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.masuk h2 {
  font-size: 22px;
  font-weight: 500;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tinta);
}

/* Baris formulir: seperti baris nota — label di atas, isian di atas garis */
.baris {
  border-bottom: 1px solid var(--garis);
  padding: 14px 0 0;
}
.baris label {
  display: block;
  font-size: 14px;
  color: var(--redup);
}
.baris input {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tinta);
  font: inherit;
  font-size: 18px;
  padding: 6px 0 12px;
  min-height: 46px;
}
.baris:focus-within { border-bottom-color: var(--biru); box-shadow: 0 1px 0 var(--biru); }
.baris:focus-within label { color: var(--biru); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--kertas) inset; -webkit-text-fill-color: var(--tinta); }

.sandi { display: flex; align-items: baseline; gap: 12px; }
.sandi input { flex: 1; min-width: 0; }

.polos {
  border: 0;
  background: none;
  color: var(--biru);
  font: inherit;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.polos:focus-visible { outline: 1px solid var(--biru); outline-offset: 4px; }

/* Ingat saya: kotak centang siku bergaris tipis */
.ingat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--redup);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.ingat input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.ingat .kotak {
  width: 17px; height: 17px;
  border: 1px solid var(--redup);
  background: var(--kertas) center / 11px 11px no-repeat;
  flex: none;
}
.ingat input:checked + .kotak {
  border-color: var(--hijau);
  background-color: var(--hijau);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.4l3 3 6-7' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E");
}
.ingat input:checked ~ span { color: var(--tinta); }
.ingat input:focus-visible + .kotak { outline: 1px solid var(--biru); outline-offset: 3px; }

.pesan {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--merah);
  color: var(--merah);
  font-size: 15px;
}
.pesan[hidden] { display: none; }

.baris.tombol { border-bottom: 0; padding-top: 16px; }
.tombol button {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--hijau);
  background: var(--hijau);
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.tombol button:hover { background: var(--hijau-tua); border-color: var(--hijau-tua); }
.tombol button:focus-visible { outline: 1px solid var(--biru); outline-offset: 3px; }
.tombol button[disabled] { background: var(--kertas); color: var(--hijau); cursor: default; }

.bantuan {
  margin-top: 18px;
  font-size: 14px;
  color: var(--redup);
  max-width: 38ch;
}

/* Tanda sambungan: kotak kecil, bukan bulatan */
.sambungan { display: flex; align-items: center; gap: 10px; }
.tanda {
  width: 9px; height: 9px;
  border: 1px solid var(--redup);
  background: transparent;
  flex: none;
}
.tanda.baik   { background: var(--hijau); border-color: var(--hijau); }
.tanda.putus  { background: var(--merah); border-color: var(--merah); }

/* Layar sempit: merek di atas, formulir di bawah */
@media (max-width: 860px) {
  .lembar { margin: 0; border-left: 0; border-right: 0; }
  .isi { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .merek { border-right: 0; justify-content: flex-start; padding-top: clamp(28px, 9vw, 56px); padding-bottom: 0; }
  .merek h1 { font-size: clamp(24px, 6.6vw, 40px); }
  .masuk { justify-content: flex-start; padding-top: clamp(30px, 9vw, 48px); }
  .kepala, .kaki { font-size: 13px; }
  .kaki { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-height: 560px) and (min-width: 861px) {
  .merek h1 { font-size: clamp(26px, 7vh, 54px); }
}
