* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #0b2b26 0%, #1a4a3a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ===== CARD ===== */
.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  width: 100%;
}

/* ===== HEADER HIJAU dengan background.jpg ===== */
.card-header {
  background: linear-gradient(135deg, rgba(15, 76, 58, 0.85), rgba(27, 107, 84, 0.85));
  background-image: url('/css/background.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  padding: 28px 24px 20px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(2px);
}

.card-header h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #facc15;
}

.card-header .subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #d1fae5;
  margin: 0;
}

.card-header .subtitle strong {
  color: #fbbf24;
  font-size: 18px;
}

.divider {
  height: 4px;
  background: #facc15;
  width: 60px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

.card-body {
  padding: 24px 24px 16px;
}

.card-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 6px;
}

.info-text {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.input-group label i {
  width: 20px;
  color: #0f4c3a;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}

.input-group input:focus {
  border-color: #0f4c3a;
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.2);
  background: #ffffff;
}

.btn-primary, .btn-secondary, .btn-logout {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #0f4c3a;
  color: white;
}

.btn-primary:hover { background: #1b6b54; transform: scale(1.01); }
.btn-primary i { font-size: 16px; }

.btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-secondary:hover { background: #cbd5e1; }

.btn-logout {
  width: auto;
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-logout:hover { background: #fecaca; }

.status-message {
  font-size: 13px;
  color: #334155;
  text-align: center;
  margin: 12px 0 6px;
  min-height: 18px;
}
.status-message.error { color: #dc2626; }

/* Dashboard setelah login */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 12px;
}

.user-avatar {
  font-size: 32px;
  color: #0f4c3a;
}

.dashboard-header h3 { font-size: 16px; color: #0f172a; }
.dashboard-header p { font-size: 13px; color: #475569; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
}

.stat-icon { font-size: 22px; }
.stat-label { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 14px; font-weight: 700; color: #0f172a; }

/* ===== FOOTER PROGRAM PRIORITAS (di dalam card) ===== */
.card-footer-kemensos {
  background: #0f4c3a;
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  border-top: 3px solid #facc15;
}

.card-footer-kemensos h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  color: #facc15;
}

.card-footer-kemensos p {
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 0;
  color: #d1fae5;
}

/* ===== Footer status (di dalam card) ===== */
.card-footer {
  background: #f1f5f9;
  padding: 12px 24px;
  text-align: center;
  font-size: 13px;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== COPYRIGHT (di LUAR card) ===== */
.footer-copyright {
  width: 100%;
  text-align: center;
  padding: 8px 0;
  color: #d1fae5;
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.5px;
  /* TANPA background kotak */
}

/* tambahan di style.css - di bagian bawah */
/* Dashboard Status Bansos */
.dashboard-status-bansos {
  background: linear-gradient(135deg, #0f4c3a, #1b6b54);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.dashboard-status-bansos .status-icon {
  font-size: 32px;
  color: #facc15;
}

.dashboard-status-bansos h3 {
  margin: 8px 0 4px;
  color: #facc15;
}

.dashboard-status-bansos p {
  margin: 0;
  color: #d1fae5;
  font-size: 14px;
}

.stat-card-bansos {
  background: #f0fdf4;
  border-color: #22c55e;
}

.stat-card-bansos .stat-value {
  color: #22c55e;
}

/* tambahan di bagian bawah style.css */
.info-bansos {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.info-bansos strong {
  color: #0f4c3a;
}

/* Dashboard header tanpa logout */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 12px;
}