/* Halaman login */
body.auth { margin: 0; min-height: 100vh; background: var(--paper); }

.auth-shell {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
}

/* Panel kiri: identitas aplikasi */
.auth-side {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.035) 0 1px, transparent 1px 48px);
}
.auth-side::after { /* garis peringatan di bawah */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--caution) 0 12px, var(--ink) 12px 24px);
}
.auth-side-inner {
  position: relative; height: 100%; max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2.5rem; padding: 3rem 3rem 3.5rem;
}
.auth-logo { display: flex; align-items: center; gap: .75rem; font-family: var(--font-num); font-size: 1.45rem; font-weight: 700; }
.auth-logo img { border-radius: 8px; }
.auth-pitch { margin-top: auto; }
.auth-pitch h2 {
  font-family: var(--font-num); font-weight: 600; font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.08; margin: 0 0 1rem; max-width: 16ch;
}
.auth-pitch p { margin: 0; color: #aeb9c3; font-size: 1.05rem; max-width: 42ch; }
.auth-company { margin: 0; color: #8795a1; font-size: .9rem; }

/* Ilustrasi garis waktu */
.auth-timeline { border-top: 1px solid rgba(255,255,255,.14); padding-top: .75rem; margin-bottom: auto; }
.at-scale { display: grid; grid-template-columns: repeat(3, 1fr); margin-left: 72px; font-size: .78rem; color: #8795a1; }
/* skala */
.at-scale span { border-left: 2px solid rgba(255,255,255,.3); padding-left: 6px; }
.at-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; height: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.at-row b { font-weight: 600; font-size: .85rem; color: #c7d0d8; }
.at-row i { position: relative; display: block; height: 100%;
  border-left: 2px solid rgba(255,255,255,.3);
  background: linear-gradient(to right,
    transparent 0 33.2%, rgba(255,255,255,.22) 33.2% 33.55%,
    transparent 33.55% 66.5%, rgba(255,255,255,.22) 66.5% 66.85%, transparent 66.85%); }
.at-row em { position: absolute; top: 9px; bottom: 9px; background: var(--signal); border-radius: 2px; }

/* Panel kanan: formulir */
.auth-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 2rem 1.5rem; background: var(--surface);
}
.auth-form { width: 100%; max-width: 380px; display: grid; gap: 1.1rem; margin: auto 0; }
.auth-form h1 { font-family: var(--font-num); font-size: 2.3rem; font-weight: 600; margin: 0; line-height: 1; }
.auth-sub { margin: -.5rem 0 .25rem; color: var(--muted); }
.auth-form .flash { margin: 0; }
.auth-mobile-logo { display: none; }

.auth-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.auth-field input {
  width: 100%; height: 50px; padding: 0 .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:hover { border-color: var(--steel); }
.auth-field input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(26,102,201,.2); }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 3.2rem; }
.auth-eye {
  position: absolute; top: 5px; right: 5px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.auth-eye:hover { color: var(--ink); background: var(--paper); }
.auth-eye .eye-shut { display: none; }
.auth-eye[aria-pressed="true"] .eye-open { display: none; }
.auth-eye[aria-pressed="true"] .eye-shut { display: block; }
.auth-caps { margin: .35rem 0 0; font-size: .85rem; color: #8a5a00; }

.auth-submit {
  height: 50px; margin-top: .35rem; font: inherit; font-size: 1.05rem; font-weight: 700;
  color: #fff; background: var(--ink); border: 0; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.auth-submit:hover { background: var(--steel); }
.auth-submit:disabled { opacity: .75; cursor: progress; }
.auth-help { margin: 0; font-size: .9rem; color: var(--muted); text-align: center; }
.auth-foot { margin: 2rem 0 0; font-size: .82rem; color: var(--muted); }

/* Tablet & HP */
@media (max-width: 900px) {
  body.auth { background: var(--surface); }
  .auth-shell { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .auth-side { display: none; }
  .auth-main {
    justify-content: flex-start; padding: 0 1.25rem 1.25rem;
    background: var(--surface);
    border-top: 10px solid var(--caution);
    border-image: repeating-linear-gradient(-45deg, var(--caution) 0 12px, var(--ink) 12px 24px) 10;
  }
  .auth-form { margin: 0; padding-top: 1.75rem; max-width: 440px; }
  .auth-mobile-logo {
    display: flex; align-items: center; gap: .75rem;
    padding-bottom: 1.25rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line);
  }
  .auth-mobile-logo img { border-radius: 8px; }
  .auth-mobile-logo strong { display: block; font-family: var(--font-num); font-size: 1.3rem; line-height: 1.1; }
  .auth-mobile-logo span { font-size: .85rem; color: var(--muted); }
  .auth-form h1 { font-size: 2rem; }
  .auth-foot { margin-top: auto; padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field input, .auth-submit { transition: none; }
}
