/* Tambahan tampilan untuk halaman login/admin. Warna & font mengikuti assets/styles.css (GPS.id). */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page .site-footer { margin-top: auto; }
.auth-hero { padding-bottom: 8px; }
.auth-hero.compact { padding: 28px 0 4px; }
.auth-hero .hero-title { font-size: clamp(30px, 5vw, 46px); }
.auth-main { display: flex; justify-content: center; padding-top: 20px; padding-bottom: 56px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 28px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select { width: 100%; font: 400 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 74, 159, .15); }
.auth-submit { width: 100%; justify-content: center; padding: 12px 18px; font-size: 15px; margin-top: 4px; }
.auth-help { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alert { border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.auth-alert.err { background: var(--danger-bg); color: #991B1B; border: 1px solid #FECACA; }
.auth-alert.ok { background: var(--success-bg); color: #166534; border: 1px solid #BBF7D0; }
.inline-form { display: inline; margin: 0; }
.muted { color: var(--muted); font-size: 13px; }

/* Header user-menu: gaya dasar ada di assets/styles.css */
.auth-page .user-menu { flex-wrap: wrap; justify-content: flex-end; }

/* Admin */
.admin-main { padding-top: 16px; padding-bottom: 56px; }
.admin-panel { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; margin-bottom: 20px; }
.admin-panel h2 { margin: 0 0 12px; font: 700 18px var(--font-display); }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left !important; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { text-align: left !important; padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.admin-table .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mini { border: 1px solid var(--border); background: #fff; color: var(--navy); font: 600 12px var(--font); padding: 5px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mini:hover { background: var(--tint); }
.mini.danger { color: var(--danger); }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.admin-form .field { margin-bottom: 0; }
.temp-pass { background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; display: grid; gap: 6px; }
.temp-pass code { font: 700 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); background: #fff; border: 1px dashed #F59E0B; border-radius: var(--radius); padding: 8px 12px; justify-self: start; user-select: all; }

@media (max-width: 760px) {
  .auth-card { padding: 20px; border-radius: var(--radius-lg); }
  .admin-form { grid-template-columns: 1fr; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .admin-table td { border: 0; padding: 4px 0; }
  .admin-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
}
