/* ============================================================================
   Halaman auth akseskerja.com (/login, /register, /forgot, /login/oauth)

   Pola "Opsi 1 · Split klasik" yang SAMA dengan interview.akseskerja.com
   (src/pages/auth/auth.css di repo aku-interview-simulation): kolom form di
   KIRI 45%, panel biru brand di KANAN 55%, ambruk jadi satu kolom di <900px.
   Nama kelas (.f1-*, .lg, .lf-*) dipertahankan supaya perubahan desain di
   sana mudah disalin ke sini. Bedanya hanya isi panel biru: landing mewakili
   seluruh ekosistem, bukan satu produk.
   ============================================================================ */
:root {
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-navy: #1E3A8A;
  --radius-btn: 10px;
  --ds-border: #E2E8F0;
  --surface-muted: #F8FAFC;
  --bg-tinted: #F0F7FF;
  --success: #10B981;
  --success-soft: #ECFDF5;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 500; }

/* ---- Shell ---------------------------------------------------------------- */
.f1 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
/* Kolom form = .auth-main interview: logo di atas, kartu 448px di tengah
   (margin:auto -> tengah bila muat, menempel ke atas bila tidak), footer di
   bawah; ketiganya satu kolom dengan tepi kiri yang sama. */
.f1-form {
  padding: 34px 40px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.f1-form > * { width: 100%; max-width: 448px; align-self: center; }
.f1-card { margin: auto 0; padding: 24px 0; }

/* Isi kartu = halaman auth interview (auth.css .lgn-head/.lgn-sub/.lf-*),
   supaya form di kedua situs tampil sama persis. */
.f1-h {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.f1-sub {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 500;
  margin: 8px 0 26px;
}
.f1-card > .f1-switch { margin-top: 22px; }
.f1-foot {
  margin-top: 18px;
  padding-top: 0;
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 500;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.f1-foot-links { display: flex; gap: 16px; }
.f1-foot a { color: var(--ink-500); font-weight: 600; text-decoration: none; }
.f1-foot a:hover { color: var(--brand-blue); }

/* ---- Lockup --------------------------------------------------------------- */
/* = logo navbar & halaman auth interview: mark 30px + AKSES<b>KERJA</b> 19px. */
.lg {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lg img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.lg span { font-size: 19px; line-height: 1.5; letter-spacing: 0.01em; color: var(--brand-navy); white-space: nowrap; }
.lg span b:first-child { font-weight: 400; }
.lg span b:last-child { font-weight: 800; }

/* ---- Panel gambar (kanan) ----------------------------------------------------
   Sama dengan halaman login interview.akseskerja.com (auth.css .auth-brand):
   setinggi layar, lebarnya dari rasio 1440/1800 gambarnya. max-width menjaga
   kolom form tetap lega di layar tinggi-sempit (tablet tegak); sisanya
   dipotong object-fit. Sticky supaya tetap penuh saat form lebih panjang. */
.f1-art {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #2E50FF;
}
.f1-art picture { display: block; height: 100%; }
.f1-art img {
  display: block;
  height: 100vh;
  width: auto;
  max-width: 55vw;
  aspect-ratio: 1440 / 1800;
  object-fit: cover;
}

/* ---- Form ------------------------------------------------------------------ */
.lf { display: flex; flex-direction: column; gap: 20px; }
.lf--tight { gap: 20px; }

.lf-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.lf-alert.is-on { display: flex; }
.lf-alert.is-ok { background: var(--success-soft); color: #047857; border-color: rgba(16, 185, 129, 0.25); }
.lf-alert .material-symbols-outlined { font-size: 18px; line-height: 1.2; }

.lf-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-700);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lf-google:hover:not(:disabled) { background: var(--surface-muted); border-color: #CBDDFB; }
.lf-google:disabled { opacity: 0.6; cursor: not-allowed; }
.lf-google svg { width: 18px; height: 18px; flex: 0 0 auto; }

.lf-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 5px 0;
}
.lf-or::before, .lf-or::after { content: ""; flex: 1; height: 1px; background: var(--ds-border-soft); }

.lf-group { display: flex; flex-direction: column; gap: 8px; }
.lf-lab { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.lf-labrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lf-forgot { font-size: 12.5px; font-weight: 600; color: var(--brand-blue); text-decoration: none; }
.lf-forgot:hover { text-decoration: underline; }

.lf-in {
  height: 48px;
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-btn);
  padding: 0 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-800);
  background: #fff;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lf-in:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.lf-in::placeholder { color: var(--ink-400); font-weight: 500; }
.lf-in:disabled { background: var(--surface-muted); cursor: not-allowed; }

.lf-pwd { position: relative; }
.lf-pwd .lf-in { padding-right: 44px; }
.lf-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 9999px;
  border: none;
  background: none;
  color: var(--ink-400);
  cursor: pointer;
}
.lf-eye:hover { color: var(--ink-600); }
.lf-eye .material-symbols-outlined { font-size: 20px; line-height: 1; }

.lf-err {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}
.lf-err .material-symbols-outlined { font-size: 15px; line-height: 1; }
.lf-group.has-error .lf-in { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.lf-group.has-error .lf-err { display: inline-flex; }

.lf-submit {
  height: 48px;
  padding: 0;
  margin-top: 4px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--brand-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.6);
  transition: background 0.15s ease, transform 0.1s ease;
}
.lf-submit:hover:not(:disabled) { background: var(--brand-blue-hover); }
.lf-submit:active:not(:disabled) { transform: scale(0.99); }
.lf-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.lf-switch { text-align: center; font-size: 13px; line-height: 20px; color: var(--ink-500); font-weight: 500; margin: 0; }
.lf-switch a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.lf-switch a:hover { text-decoration: underline; }

/* Syarat kata sandi (= interview auth.css .pw-*): lingkaran kosong saat diam,
   hijau terisi begitu syarat terpenuhi. */
.pw-list { display: flex; flex-direction: column; gap: 8px; }
.pw-r { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-500); transition: color .18s ease; }
.pw-r .dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ds-border); display: grid; place-items: center; transition: border-color .18s, background .18s; }
.pw-r .dot .material-symbols-outlined { font-size: 11px; color: #fff; opacity: 0; transition: opacity .18s; font-variation-settings: 'FILL' 1, 'wght' 700, 'opsz' 20; }
.pw-r.ok { color: var(--ink-700); }
.pw-r.ok .dot { border-color: var(--success); background: var(--success); }
.pw-r.ok .dot .material-symbols-outlined { opacity: 1; }

.lf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-500);
  cursor: pointer;
}
.lf-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand-blue);
  cursor: pointer;
}
.lf-check.has-error input { outline: 2px solid var(--danger); outline-offset: 1px; }
.lf-check a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }

/* Keadaan "cek email kamu" setelah daftar / lupa kata sandi. */
.lf-done { display: none; margin-top: 30px; flex-direction: column; gap: 16px; }
.lf-done.is-on { display: flex; }
.lf-done-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-tinted);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-done-ico .material-symbols-outlined { font-size: 28px; }
.lf-done p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-600); font-weight: 500; }
.lf-done p b { color: var(--ink-900); }
.lf-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-btn);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-700);
  text-decoration: none;
  cursor: pointer;
}
.lf-ghost:hover { background: var(--surface-muted); }

/* Halaman callback Google: cukup status di tengah. */
.proses {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}
.proses p { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-600); }
.putar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--bg-tinted);
  border-top-color: var(--brand-blue);
  animation: putar 0.8s linear infinite;
}
@keyframes putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .putar { animation-duration: 2.4s; } }

/* ---- Responsif: sama dengan interview ------------------------------------- */
@media (max-width: 900px) {
  .f1 { grid-template-columns: 1fr; }
  .f1-art { display: none; }
  .f1-form { padding: 26px 24px 0; min-height: 100vh; }
  .f1-form > * { max-width: 420px; margin-left: auto; margin-right: auto; }
  .f1-card { margin: 0 auto; padding: 26px 0 0; }
  .f1-foot { margin-top: auto; }
  .f1-foot { padding: 24px 0 calc(env(safe-area-inset-bottom, 0px) + 20px); }
  .lf-submit {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 2;
    box-shadow: 0 16px 32px -12px rgba(37, 99, 235, 0.65), 0 8px 24px -6px rgba(15, 23, 42, 0.25);
  }
}
@media (max-width: 480px) {
  .f1-form { padding: 22px 20px 0; }
}
@media (max-width: 620px) { .f1-h { font-size: 27px; } }
