/* =========================================================
   LARIK ID — halaman Masuk / Daftar / Lupa password / Verifikasi
   Dimuat BERSAMA /assets/landing.css (variabel warna, header, tombol).
   Hanya terang — tidak ada mode gelap, tidak ada tombol ganti tema.
   ========================================================= */
body.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); }

.auth-main { flex: 1; display: grid; place-items: center; padding: 48px 0 64px; }
.auth-wrap { width: min(440px, calc(100% - 36px)); }

.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-soft); padding: 34px 32px 28px; }

.auth-heading { margin-bottom: 22px; }
.auth-heading > span { display: block; color: var(--primary); font-size: 10px; font-weight: 700; }
.auth-heading h1 { font-size: 28px; line-height: 1.3; font-weight: 800; margin: 8px 0 8px; }
.auth-heading h1 b { color: var(--primary); font-weight: 800; }
.auth-heading p { margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.9; }
.auth-heading.compact h1 { font-size: 24px; }
.code-target { font-weight: 700; color: var(--foreground) !important; word-break: break-all; }

/* ---- Alert ---- */
.alert { border-radius: 6px; border: 1px solid var(--border); padding: 11px 14px; font-size: 12px; line-height: 1.7; margin-bottom: 18px; background: var(--secondary); color: var(--foreground); }
.alert.success { background: color-mix(in oklab, var(--success) 9%, white); border-color: color-mix(in oklab, var(--success) 35%, white); color: var(--success); }
.alert.error { background: color-mix(in oklab, var(--destructive) 8%, white); border-color: color-mix(in oklab, var(--destructive) 35%, white); color: var(--destructive); }
.alert.info { background: var(--secondary); border-color: color-mix(in oklab, var(--primary) 25%, white); color: var(--primary); }

/* ---- Tombol ---- */
.auth-card .btn { width: 100%; height: 46px; font-size: 12px; font-weight: 700; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn-google { background: var(--card); border-color: var(--border); color: var(--foreground); font-weight: 600 !important; box-shadow: 0 1px 2px oklch(0 0 0 / .05); }
.btn-google:hover { background: var(--secondary); }
.btn-google svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.auth-card .btn-ghost { border: 1px solid var(--border); font-weight: 600; }

.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-foreground); font-size: 11px; }
.or span { flex: 1; height: 1px; background: var(--border); }

/* ---- Form ---- */
.auth-form { display: grid; gap: 12px; }
.auth-form.form-hidden, .form-hidden { display: none; }
.field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 14%, transparent); }
.field > svg { width: 17px; height: 17px; color: var(--muted-foreground); flex-shrink: 0; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 13px; }
.field input::placeholder { color: var(--muted-foreground); opacity: .85; }
.field button { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--muted-foreground); display: grid; place-items: center; border-radius: 4px; }
.field button:hover { color: var(--primary); }
.field button svg { width: 17px; height: 17px; }
.code-input { letter-spacing: .25em; font-weight: 700; text-align: center; }
.forgot-link { justify-self: end; font-size: 11px; font-weight: 600; color: var(--primary); }
.forgot-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.resend-form { margin-top: 12px; }

.switch-auth { margin: 20px 0 0; text-align: center; font-size: 12px; color: var(--muted-foreground); }
.switch-auth button, .switch-auth a { background: none; border: 0; padding: 0; margin-left: 4px; cursor: pointer; color: var(--primary); font-weight: 700; font-size: 12px; }
.switch-auth button:hover, .switch-auth a:hover { text-decoration: underline; text-underline-offset: 4px; }

.auth-foot { text-align: center; color: var(--muted-foreground); font-size: 10px; padding: 0 0 26px; }

@media (max-width: 680px) {
  .auth-main { padding: 28px 0 40px; place-items: start center; }
  .auth-card { padding: 26px 20px 22px; }
  .auth-heading h1 { font-size: 24px; }
}
