:root {
  --tinta:   #15212e;
  --tinta-2: #24384b;
  --kertas:  #ffffff;
  --redup:   #5a6b7b;
  --garis:   #dce3ea;
  --aksen:   #0f7b6c;
  --bahaya:  #a32219;
  --ukuran:  16px;
}

* { box-sizing: border-box; }

html { font-size: var(--ukuran); }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--tinta);
  background: var(--kertas);
  line-height: 1.55;
}

/* ---------- Tata letak halaman login ---------- */

.halaman-masuk { min-height: 100vh; }

.masuk {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  min-height: 100vh;
}

.masuk__sisi {
  background: var(--tinta);
  color: #e6edf3;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .75rem;
}

.masuk__merek {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.masuk__ket {
  margin: 0;
  color: #a9bccd;
  max-width: 28ch;
}

.masuk__kaki {
  margin: 2rem 0 0;
  font-size: .85rem;
  color: #7d94a8;
}

.masuk__utama {
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
}

/* ---------- Form ---------- */

.form {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.form__judul {
  margin: 0 0 1.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.bidang { margin-bottom: 1.1rem; }

.bidang label {
  display: block;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--redup);
}

.bidang input {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--tinta);
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 4px;
}

.bidang input:focus-visible {
  outline: 2px solid var(--aksen);
  outline-offset: 1px;
  border-color: var(--aksen);
}

.tombol {
  width: 100%;
  padding: .75rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--aksen);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.tombol:hover { background: #0c6558; }

.tombol:focus-visible {
  outline: 2px solid var(--tinta);
  outline-offset: 2px;
}

.peringatan {
  margin: 0 0 1.25rem;
  padding: .7rem .8rem;
  font-size: .9rem;
  color: var(--bahaya);
  background: #fdf2f1;
  border-left: 3px solid var(--bahaya);
}

.kabar {
  margin: 0 0 1.25rem;
  padding: .7rem .8rem;
  font-size: .9rem;
  color: #0c5c50;
  background: #eef7f5;
  border-left: 3px solid var(--aksen);
}

.bantuan {
  margin: 1.5rem 0 0;
  font-size: .85rem;
  color: var(--redup);
}

/* ---------- Beranda ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #e6edf3;
  background: var(--tinta);
}

.bar__merek { font-weight: 600; }

.bar__aksi { font-size: .9rem; color: #a9bccd; }

.bar__aksi a {
  margin-left: .75rem;
  color: #fff;
}

.isi {
  max-width: 44rem;
  padding: 2.5rem 1.5rem;
}

.isi h1 { margin: 0 0 .5rem; font-size: 1.4rem; }

.isi__ket { margin: 0 0 2rem; color: var(--redup); max-width: 56ch; }

.rincian {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .4rem 1.5rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--garis);
  font-size: .95rem;
}

.rincian dt { color: var(--redup); }
.rincian dd { margin: 0; }

/* ---------- Layar kecil ---------- */

@media (max-width: 42rem) {
  .masuk { grid-template-columns: 1fr; }

  .masuk__sisi {
    padding: 1.5rem;
    justify-content: flex-start;
  }

  .masuk__merek { font-size: 1.2rem; }
  .masuk__kaki { display: none; }
  .masuk__utama { padding: 2rem 1.25rem; }
}
