:root {
  --bg: #f4f7fb;
  --bg-page: linear-gradient(180deg, #f9fbff 0%, #eef3f9 100%);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --topbar-border: rgba(15, 23, 42, 0.06);
  --footer-border: rgba(15, 23, 42, 0.06);
  --toggle-bg: rgba(37, 99, 235, 0.08);
  --toggle-border: rgba(37, 99, 235, 0.14);
  --toggle-text: #0f172a;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-page: linear-gradient(180deg, #09111f 0%, #0f172a 100%);
  --surface: #111a2e;
  --surface-soft: #16233a;
  --text: #e5eefc;
  --muted: #9db0c9;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #7dd3fc;
  --topbar-bg: rgba(7, 12, 24, 0.92);
  --topbar-border: rgba(148, 163, 184, 0.16);
  --footer-border: rgba(148, 163, 184, 0.16);
  --toggle-bg: rgba(125, 211, 252, 0.12);
  --toggle-border: rgba(125, 211, 252, 0.2);
  --toggle-text: #e5eefc;
  --shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg-page);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1040px, calc(100% - 20px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-actions .theme-toggle,
.topbar-actions .login-toggle.icon-only-button,
.topbar-actions .icon-only-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.brand-name {
  font-size: 1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-text);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.login-toggle.icon-only-button,
.icon-only-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 0;
}

.logout-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: #dc2626;
}

.logout-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.login-toggle:hover .logout-icon,
.login-toggle:focus-visible .logout-icon {
  color: #b91c1c;
}

.topbar-actions form {
  margin: 0;
  display: inline-flex;
}

.hero {
  margin: 14px 0 18px;
}

.hero-panel {
  padding: 8px 0 0;
}

.hero-shell,
.card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card,
.note-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.card::before,
.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card::after,
.note-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.card:hover,
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.12);
}

.card:hover h3,
.note-card:hover h2 {
  color: var(--primary);
}

.card-icon,
.note-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.login-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.login-toggle:hover,
.login-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.login-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.login-toggle-text {
  font-size: 0.92rem;
}

.login-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

@media all and (display-mode: standalone) {
  #installAppButton,
  #installAppButton {
    display: none !important;
  }
}

html.is-standalone #installAppButton,
html.is-standalone #installAppButton {
  display: none !important;
}

.pwa-update-toast {
  position: fixed;
  top: auto;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pwa-update-toast[hidden] {
  display: none !important;
}

.pwa-update-toast-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 900;
  font-size: 1rem;
}

.pwa-update-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.pwa-update-toast-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.pwa-update-toast-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pwa-update-toast-action,
.pwa-update-toast-close {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pwa-update-toast-action:hover,
.pwa-update-toast-close:hover,
.pwa-update-toast-action:focus-visible,
.pwa-update-toast-close:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.pwa-update-toast-close {
  padding: 0;
  width: 40px;
  flex: 0 0 40px;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .pwa-update-toast {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    width: auto;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .pwa-update-toast-action {
    margin-left: auto;
    padding: 0 12px;
  }

  .pwa-update-toast-copy {
    flex: 1 1 auto;
  }
}

.note-icon {
  background: rgba(6, 182, 212, 0.10);
  color: #0891b2;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.10);
}

.card p {
  line-height: 1.7;
}

.feature-slide {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.desktop-slide-grid {
  display: grid;
  gap: 12px;
}

.feature-slide-secondary {
  display: none;
}

.feature-slide-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.feature-slide-caption {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.feature-slide-caption strong {
  color: var(--text);
  font-size: 1rem;
}

.feature-slide-caption span {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-slide:focus-within,
.feature-slide:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.feature-slide:active {
  filter: saturate(0.98);
}

.hero-shell {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hero-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.hero-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1,
.section-title,
.card h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.lead,
.focus-text,
.card p {
  margin: 0;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-mark {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 4px;
}

.hero-logo-lg {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.hero-mark-text {
  display: grid;
  text-align: center;
  gap: 2px;
  color: var(--muted);
}

.hero-mark-text strong {
  color: var(--text);
}

.section-block {
  padding: 4px 0 12px;
}

.section-title {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 12px;
}

.cols-3 {
  grid-template-columns: 1fr;
}

.card {
  padding: 18px;
}

.info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.info-card h3,
.note-card .section-title {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #0f172a;
}

.note-card {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.note-card .section-title {
  margin-bottom: 10px;
}

.note-card .focus-text {
  max-width: 60ch;
}

.latest-info-card {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 24px 26px;
}

.latest-info-card p {
  max-width: 70ch;
}

.resident-detail-card {
  max-width: 100%;
  width: 100%;
  justify-self: center;
  margin: 0 auto;
  padding: 22px 24px 22px;
}

.resident-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.resident-detail-head .card-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.resident-detail-head .section-title {
  margin-bottom: 0;
  line-height: 1.1;
}

.resident-search-form {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.resident-search-field {
  display: grid;
  gap: 8px;
}

.resident-search-field span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.resident-search-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resident-search-input {
  text-transform: uppercase;
}

.resident-search-field input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.resident-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resident-search-reset {
  text-decoration: none;
}

.resident-search-summary {
  display: grid;
  gap: 10px;
}

.resident-search-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.resident-search-results {
  display: grid;
  gap: 10px;
}

.resident-search-result {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.resident-search-result-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.resident-search-result-line {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

html[data-theme="dark"] .resident-detail-card {
  background: linear-gradient(180deg, #13213a 0%, #0b1220 100%);
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.52);
}

html[data-theme="dark"] .resident-detail-card h2 {
  color: #ffffff;
}

html[data-theme="dark"] .resident-detail-card .card-icon {
  background: rgba(125, 211, 252, 0.14);
  color: #d9f2ff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16);
}

html[data-theme="dark"] .resident-detail-card::before {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(37, 99, 235, 0.03), rgba(255, 255, 255, 0));
}

html[data-theme="dark"] .resident-detail-card::after {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .resident-detail-card .resident-detail-item {
  background: #0d172b;
  border-color: rgba(125, 211, 252, 0.12);
}

html[data-theme="dark"] .resident-detail-card .resident-detail-item span {
  color: #9ab3d1;
}

html[data-theme="dark"] .resident-detail-card .resident-detail-item strong {
  color: #f8fbff;
}

html[data-theme="dark"] .resident-search-field input {
  background: #0d172b;
  border-color: rgba(125, 211, 252, 0.16);
  color: #f8fbff;
}

html[data-theme="dark"] .resident-search-field input::placeholder {
  color: #7f9ab6;
}

html[data-theme="dark"] .resident-search-field input:focus {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
}

html[data-theme="dark"] .resident-search-result {
  background: #0d172b;
  border-color: rgba(125, 211, 252, 0.12);
}

html[data-theme="dark"] .resident-search-message {
  color: #f8fbff;
}

html[data-theme="dark"] .resident-search-result-name {
  color: #f8fbff;
}

html[data-theme="dark"] .resident-search-result-line {
  color: #9ab3d1;
}

.resident-detail-note {
  max-width: 70ch;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.resident-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resident-detail-grid.single-column {
  grid-template-columns: 1fr;
  gap: 12px;
}

.resident-detail-grid-two-rows {
  grid-template-columns: 1fr;
  gap: 10px;
}

.resident-detail-item {
  padding: 12px 16px 11px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  gap: 6px;
}

.resident-detail-item span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.resident-detail-item strong {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.resident-detail-item-inline strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.resident-inline-separator {
  color: var(--muted);
  font-weight: 800;
}

html[data-theme="dark"] .resident-detail-item-inline strong {
  color: #f8fbff;
}

@media (min-width: 720px) {
  .resident-detail-card {
    padding: 26px 28px 26px;
  }

  .resident-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .resident-search-actions {
    justify-content: flex-end;
  }

  .resident-detail-grid-two-rows {
    gap: 12px;
  }

  .resident-detail-item {
    padding: 13px 18px 12px;
  }

  .resident-detail-item strong {
    font-size: 1rem;
  }
}

.dashboard-menu-button {
  text-decoration: none;
}

.tambahdata-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 26px;
}

html[data-theme="dark"] .tambahdata-card {
  background: linear-gradient(180deg, #16233a 0%, #0b1220 100%);
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.5);
}

.tambahdata-card .tambahdata-title {
  margin: 0 0 6px;
  font-size: 1.36rem !important;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  max-width: 100%;
}

.tambahdata-role {
  margin: 4px 0 14px;
}

.tambahdata-card .input-locked {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.95;
}

.tambahdata-card .login-field input:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.95;
}

html[data-theme="dark"] .tambahdata-card .input-locked {
  background: #0d172b;
  color: #a9bdd7;
}

html[data-theme="dark"] .tambahdata-card .login-field input:disabled {
  background: #0d172b;
  color: #a9bdd7;
}

html[data-theme="dark"] .tambahdata-card .lead,
html[data-theme="dark"] .tambahdata-card .login-field,
html[data-theme="dark"] .tambahdata-card .login-field span,
html[data-theme="dark"] .tambahdata-card .reset-message {
  color: #f0f7ff;
}

html[data-theme="dark"] .tambahdata-card .tambahdata-title {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.25);
}

html[data-theme="dark"] .tambahdata-card .lead {
  color: #c8d6ea;
}

html[data-theme="dark"] .tambahdata-card .card-icon {
  background: rgba(125, 211, 252, 0.14);
  color: #d9f2ff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16);
}

html[data-theme="dark"] .tambahdata-card::before {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.14), rgba(37, 99, 235, 0.02), rgba(255, 255, 255, 0));
}

html[data-theme="dark"] .tambahdata-card::after {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .tambahdata-card .lead strong {
  color: #ffffff;
}

html[data-theme="dark"] .tambahdata-card .login-field input {
  background: #0e172b;
  border-color: rgba(125, 211, 252, 0.24);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .tambahdata-card .login-field input::placeholder {
  color: #a9bdd7;
}

html[data-theme="dark"] .tambahdata-card .login-field input:focus {
  outline-color: rgba(125, 211, 252, 0.42);
}

.tambahdata-form {
  margin-top: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tambahdata-card .login-submit {
  margin-top: 2px;
}

.admin-form-grid .admin-field-full {
  grid-column: 1 / -1;
}

.site-footer {
  margin-top: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--footer-border);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer .container {
  display: grid;
  gap: 4px;
}

.login-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 30;
}

.login-modal.is-open {
  display: grid;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  z-index: 1;
}

.login-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.login-modal-text {
  margin: 0 0 18px;
  color: var(--muted);
}

.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.input-uppercase {
  text-transform: uppercase;
}

.login-field input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.24);
  outline-offset: 1px;
}

.login-submit {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.forgot-password-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0;
  margin-top: -4px;
  justify-self: start;
  cursor: pointer;
}

.forgot-password-button:hover,
.forgot-password-button:focus-visible {
  text-decoration: underline;
}

.reset-page-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 22px;
}

.reset-page-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
}

.reset-page-card .hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.reset-page-card .login-modal-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

.reset-page-card .login-field {
  font-size: 0.88rem;
}

.reset-page-card .login-field input {
  padding: 11px 12px;
  font-size: 0.95rem;
}

.reset-page-card .login-submit,
.reset-page-card .reset-back-link {
  padding: 11px 14px;
  font-size: 0.96rem;
}

.reset-message {
  padding: 10px 12px;
  border-radius: 14px;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
}

.reset-message.is-success {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.reset-message.is-error {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
}

.reset-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.google-login-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #4285f4;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.18);
}

.google-login-text {
  line-height: 1;
}

.login-status {
  min-height: 1.25em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-shell {
  display: grid;
  gap: 16px;
}

.dashboard-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-menu-button {
  text-decoration: none;
  display: inline-flex;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.role-badge.is-super-admin {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.18);
}

.role-badge.is-rt {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.role-badge.is-warga {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.2);
}

html[data-theme="dark"] .role-badge.is-rt {
  background: rgba(16, 185, 129, 0.16);
  color: #7ee2b8;
  border-color: rgba(16, 185, 129, 0.24);
}

html[data-theme="dark"] .role-badge.is-warga {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.24);
}

.dashboard-stats {
  margin-top: 2px;
}

.login-toggle,
.dashboard-card .login-submit {
  text-align: center;
}

.dashboard-card .login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .container {
    width: min(1080px, calc(100% - 32px));
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    padding: 26px;
  }

  .hero-copy {
    gap: 12px;
  }

  .cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-slide-caption {
    padding: 16px 18px 18px;
  }

  .feature-slide-caption strong {
    font-size: 1.02rem;
  }

  .feature-slide-caption span {
    font-size: 0.98rem;
  }

  .desktop-slide-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .feature-slide {
    min-width: 0;
  }

  .latest-info-card {
    max-width: 760px;
  }

  .feature-slide-image {
    aspect-ratio: 21 / 10;
  }

  .feature-slide-secondary {
    display: block;
  }

  .latest-info-card {
    max-width: 100%;
    padding: 28px 28px 30px;
  }

  .hero-logo-lg {
    width: 128px;
    height: 128px;
  }
}

@media (min-width: 980px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 32px;
  }

  .hero-logo-lg {
    width: 140px;
    height: 140px;
  }

  .desktop-slide-grid {
    gap: 14px;
  }

  .feature-slide-image {
    aspect-ratio: 21 / 11;
  }
  
  .feature-slide-caption {
    padding: 12px 16px 14px;
  }

  .latest-info-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  body {
    font-size: 16px;
  }

  .hero-shell,
  .card,
  .note-card {
    border-radius: 16px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .topbar-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .topbar-actions {
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .login-toggle,
  .theme-toggle {
    min-height: 38px;
    padding: 8px 12px;
  }

  .theme-toggle {
    min-width: 42px;
    justify-content: center;
  }

  .hero-copy {
    justify-items: center;
  }

  .hero-shell {
    padding: 16px;
    gap: 14px;
  }

  .hero-logo-lg {
    width: 90px;
    height: 90px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .hero-meta {
    justify-content: center;
  }

  .card,
  .note-card {
    padding: 16px;
  }

  .latest-info-card {
    padding: 16px;
  }

  .slide-caption {
    padding: 12px 14px 14px;
  }

  .slide-caption strong {
    font-size: 0.98rem;
  }

  .slide-caption span {
    font-size: 0.92rem;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p,
  .focus-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .section-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100%, calc(100% - 12px));
  }

  .topbar-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-shell {
    padding: 14px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .theme-toggle,
  .login-toggle {
    min-height: 36px;
    padding: 7px 11px;
  }

  .login-toggle {
    font-size: 0.88rem;
  }

  .hero-meta span {
    font-size: 0.76rem;
    padding: 6px 9px;
  }

  .feature-slide-caption {
    padding: 12px 14px 14px;
  }

  .feature-slide-caption strong {
    font-size: 0.98rem;
  }

  .feature-slide-caption span {
    font-size: 0.92rem;
  }

  .feature-slide-secondary {
    display: block;
  }

  .section-title {
    font-size: 1.08rem;
  }

  .feature-slide-caption {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-slide {
    scroll-behavior: auto;
  }
}
