/* ==========================================================================
   v6 — ROMBAK TOTAL HALAMAN LOGIN (TEMA KARTUN, NADA LEMBUT)
   Berlaku untuk halaman login karyawan (.page-shell) dan login admin (.login-shell).
   Hanya menyentuh halaman login; tidak ada id/kelas yang diubah sehingga
   formulir, Absen Masuk/Keluar cepat, ganti bahasa, lupa password, ganti user,
   dan tombol Pasang Aplikasi tetap bekerja seperti biasa. Tanpa font/gambar dari
   luar, tanpa efek blur -> ringan dan tidak menyilaukan.
   ========================================================================== */

/* ---------- 1. LATAR HALAMAN ---------- */
.page-shell {
  --lg-ink: #1b2c24; --lg-muted: #5f7268; --lg-line: #dde8e1;
  --lg-mint: #e9f6ef; --lg-main: #3fae7d; --lg-main-dark: #2f8b64;
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 18px 12px 30px; color: var(--lg-ink);
  background:
    radial-gradient(520px 300px at 12% 8%, #e8f6ef 0%, rgba(232,246,239,0) 70%),
    radial-gradient(480px 320px at 88% 92%, #eaf2fb 0%, rgba(234,242,251,0) 72%),
    radial-gradient(rgba(90,150,120,.10) 1.3px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(180deg, #f7fbf9, #f2f7f4);
}
.page-shell *, .login-shell * { box-sizing: border-box; }

/* ---------- 2. KARTU PERANGKAT ---------- */
.page-shell .device-card {
  position: relative; width: 100%; max-width: 452px; margin: 0 auto; overflow: hidden;
  background: #ffffff; border: 3px solid var(--lg-line); border-radius: 32px;
  box-shadow: 0 10px 0 -2px #e4eee8, 0 26px 50px -28px rgba(18, 60, 40, .35);
}

/* ---------- 3. KEPALA KARTUN ---------- */
.page-shell .hero-header {
  position: relative; padding: 22px 20px 30px; text-align: center; color: #f4fff9;
  background:
    radial-gradient(rgba(255,255,255,.38) 1.5px, transparent 1.7px) 0 0 / 16px 16px,
    linear-gradient(140deg, #2f8b64, #4fae84 58%, #6fbf9d);
}
.page-shell .hero-header::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -20px; height: 42px;
  background: #ffffff; border-radius: 50% 50% 0 0;
}
.page-shell .hero-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.page-shell .brand-badge-circle {
  width: 74px; height: 74px; padding: 6px; border-radius: 50%; overflow: hidden;
  background: #ffffff; border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 5px 0 rgba(11, 53, 34, .28); display: grid; place-items: center;
}
.page-shell .brand-badge-circle img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.page-shell .hero-app-title { margin: 2px 0 0; font-size: 1.28rem; font-weight: 900; letter-spacing: -.02em; }
.page-shell .hero-app-by { font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.86); }
.page-shell .hero-illustration { display: block; max-width: 248px; margin: 10px auto 2px; position: relative; z-index: 1; }
.page-shell .hero-illustration svg { display: block; width: 100%; height: auto; }
.page-shell #char-left, .page-shell #char-right { animation: lg-float 3.4s ease-in-out infinite; }
.page-shell #char-right { animation-delay: .6s; }
.page-shell #char-center, .page-shell #spark-center { animation: lg-pop 3.4s ease-in-out infinite; }
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes lg-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ---------- 4. BADAN KARTU ---------- */
.page-shell .card-body-panel { position: relative; padding: 30px 20px 22px; background: #ffffff; }
.page-shell .panel-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.06rem; font-weight: 900; letter-spacing: -.02em; color: var(--lg-ink); }
.page-shell .panel-title::before { content: ""; width: 11px; height: 11px; border-radius: 4px; background: var(--lg-main); box-shadow: 0 2px 0 var(--lg-main-dark); }
.page-shell .panel-desc { margin: 4px 0 16px; color: var(--lg-muted); font-size: .78rem; line-height: 1.5; }

/* ---------- 5. KOLOM ISIAN PIL ---------- */
.page-shell .form-group-pill {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px;
  margin-bottom: 13px; padding: 6px 12px; border: 2px solid var(--lg-line); border-radius: 18px;
  background: #f9fdfb; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.page-shell .form-group-pill:hover { border-color: #c3e0d0; }
.page-shell .form-group-pill:focus-within { border-color: var(--lg-main); background: #ffffff; box-shadow: 0 0 0 4px #e4f4ea; }
.page-shell .form-group-pill input,
.page-shell .form-group-pill select {
  flex: 1; min-height: 40px; padding-right: 46px; border: 0; outline: none; background: transparent;
  font-size: .92rem; font-weight: 650; color: var(--lg-ink);
}
.page-shell .form-group-pill select { appearance: none; -webkit-appearance: none; }
.page-shell .pill-icon {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: 12px; background: var(--lg-mint); color: var(--lg-main-dark); border: 2px solid #d8ece1;
}
.page-shell .pill-icon svg { width: 17px; height: 17px; }
.page-shell .pill-icon.password-toggle-btn,
.page-shell .pill-icon.select-caret {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border-color: transparent; cursor: pointer;
}

/* ---------- 6. TOMBOL ---------- */
.page-shell .btn-primary-orange, .page-shell #submit-button {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  min-height: 56px; margin-top: 4px; border: 2px solid #c9762f; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #f0a463, #e08c3f); color: #ffffff;
  font-size: 1rem; font-weight: 900; letter-spacing: .01em;
  box-shadow: 0 5px 0 #b96a2b; transition: transform .14s ease, box-shadow .14s ease;
}
.page-shell .btn-primary-orange:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #b96a2b; }
.page-shell .btn-primary-orange:active { transform: translateY(4px); box-shadow: 0 1px 0 #b96a2b; }
.page-shell .btn-icon-svg { width: 20px; height: 20px; }
.page-shell .btn-quick-att {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 850; font-size: .86rem;
  transition: transform .14s ease, box-shadow .14s ease;
}
.page-shell .btn-quick-att.in { background: linear-gradient(180deg, #58bd8d, #3fae7d); color: #fff; border-color: #2f8b64; box-shadow: 0 4px 0 #2f8b64; }
.page-shell .btn-quick-att.out { background: linear-gradient(180deg, #7d93a6, #607588); color: #fff; border-color: #4b5f70; box-shadow: 0 4px 0 #4b5f70; }
.page-shell .btn-quick-att:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.page-shell .btn-pwa-option { min-height: 46px; border: 2px solid var(--lg-line); border-radius: 999px; background: #ffffff; font-weight: 800; cursor: pointer; }

/* ---------- 7. TAUTAN & KAKI KARTU ---------- */
.page-shell .footer-action-links a, .page-shell .footer-action-links button { color: var(--lg-main-dark); font-weight: 800; font-size: .8rem; }
.page-shell .footer-inner { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--lg-line); border-radius: 18px; background: #f7fbf8; }
.page-shell .footer-copy, .page-shell .footer-dev { color: var(--lg-muted); font-size: .72rem; text-align: center; }
.page-shell #message { border-radius: 14px; font-weight: 750; font-size: .78rem; }

/* ---------- 8. HALAMAN LOGIN ADMIN ----------
   v7: gaya kartu login admin kini ditangani sepenuhnya oleh
   public/css/admin-login-kartun.css (rombak total). Di sini hanya
   latar halaman agar tidak bertabrakan. ---------- */
.login-shell { background: radial-gradient(rgba(90,150,120,.10) 1.3px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(180deg, #f8fbf9, #f1f6f3); }

/* ---------- 9. RESPONSIF & GERAK MINIMAL ---------- */
@media (max-width: 420px) {
  .page-shell { padding: 10px 8px 24px; }
  .page-shell .device-card { border-radius: 26px; }
  .page-shell .hero-header { padding: 18px 16px 24px; }
  .page-shell .card-body-panel { padding: 26px 16px 18px; }
  .page-shell .hero-illustration { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-shell *, .login-shell * { animation: none !important; transition: none !important; }
}
