/* ===================================================
   Youth Camp Registration — Iglesia Bautista Emanuel
   Style: Clean mountain-camp theme, deep forest greens
   + warm amber accents. Bilingual, mobile-first.
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Montserrat:wght@700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --green-dark: #1a3a2e;
  --green-mid:  #2d6a4f;
  --green-light:#52b788;
  --green-pale: #d8f3dc;
  --amber:      #e9c46a;
  --amber-dark: #f4a261;
  --red:        #e63946;
  --red-pale:   #ffe0e3;
  --blue:       #2196f3;
  --blue-pale:  #e3f2fd;
  --white:      #ffffff;
  --off-white:  #f6f9f7;
  --gray-100:   #f0f4f1;
  --gray-200:   #e0e8e4;
  --gray-400:   #9ab5a8;
  --gray-600:   #5a7a6e;
  --gray-800:   #2e4840;
  --text:       #1c2e26;
  --text-soft:  #4a6a5e;

  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 20px rgba(26,58,46,0.10);
  --shadow-sm:  0 2px 8px rgba(26,58,46,0.08);
  --transition: 0.2s ease;

  --font-body:    'Nunito', sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.app-header {
  background: var(--green-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand { display: flex; align-items: center; gap: 14px; }

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--amber);
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--green-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storage-badge {
  background: var(--green-mid);
  color: var(--amber);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── TAB NAV ── */
.tab-nav {
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  position: relative;
}

.tab-btn .tab-icon { font-size: 1.15rem; }
.tab-btn .tab-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--amber);
  border-radius: 3px 3px 0 0;
  transition: left var(--transition), right var(--transition);
}

.tab-btn.active {
  color: var(--amber);
}

.tab-btn.active::after {
  left: 10%; right: 10%;
}

.tab-btn:hover { color: var(--white); background: rgba(255,255,255,0.06); }

/* ── MAIN ── */
.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── SECTIONS ── */
.tab-section { display: none; }
.tab-section.active { display: block; }

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
}

.section-header p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 2px;
}

.section-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── DASHBOARD STATS ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-light);
  text-align: center;
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-2px); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.church-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.church-summary-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.church-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}

.church-row:last-child { border-bottom: none; }

.church-count {
  font-weight: 800;
  color: var(--green-mid);
}

/* ── REGISTRATION TYPE TABS ── */
.reg-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--gray-100);
  padding: 6px;
  border-radius: var(--radius);
}

.reg-type-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: all var(--transition);
}

.reg-type-btn.active {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

/* ── FORMS ── */
.reg-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}

.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-group--sm { flex: 0 0 120px; }

label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
}

.req { color: var(--red); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}

input::placeholder, textarea::placeholder { color: var(--gray-400); }

textarea { resize: vertical; min-height: 80px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  background: var(--gray-100);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

/* ── PHOTO UPLOAD ── */
.photo-upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  margin-bottom: 14px;
}

.photo-upload-area:hover { border-color: var(--green-light); }

.photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 12px;
  display: block;
  box-shadow: var(--shadow-sm);
}

.photo-placeholder {
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 16px 0;
}

.photo-placeholder-icon { font-size: 2.5rem; margin-bottom: 6px; }

.photo-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── PERMISSIONS ── */
.permission-block {
  background: var(--gray-100);
  border-left: 4px solid var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.permission-block h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.permission-block p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.media-permission-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.radio-option input { width: auto; }

.media-warning {
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  letter-spacing: 0.05em;
  animation: pulse-warn 1.5s ease-in-out infinite;
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green-mid);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-mid);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-dark); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
}
.btn--outline:hover { border-color: var(--green-light); color: var(--green-dark); }

.btn--danger {
  background: var(--red-pale);
  color: var(--red);
  border: 2px solid transparent;
}
.btn--danger:hover { background: var(--red); color: var(--white); }

.btn--sm { padding: 7px 14px; font-size: 0.8rem; }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 180px;
}

.search-bar select {
  min-width: 160px;
  flex: 0 0 auto;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ── CAMPER CARD ── */
.camper-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1.5px solid var(--gray-200);
}

.camper-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.camper-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.camper-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--green-pale);
}

.camper-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.camper-card-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.camper-card-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.camper-card-body { padding: 12px 16px; }

.camper-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.camper-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge--paid    { background: #d4f7d4; color: #1a6b1a; }
.badge--pending { background: #fff3cd; color: #8a6400; }
.badge--partial { background: #ffe5cc; color: #8a4200; }
.badge--scholarship { background: var(--blue-pale); color: #0d47a1; }
.badge--no-media { background: var(--red); color: var(--white); font-weight: 900; }
.badge--media-ok { background: var(--green-pale); color: var(--green-dark); }
.badge--group { background: var(--amber); color: var(--green-dark); }
.badge--male { background: #e3f2fd; color: #0d47a1; }
.badge--female { background: #fce4ec; color: #880e4f; }

.camper-card-footer {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--gray-100);
  justify-content: flex-end;
}

/* ── STAFF CARD ── */
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  padding: 16px;
  transition: transform var(--transition);
}

.staff-card:hover { transform: translateY(-2px); }

.staff-card-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.staff-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--green-pale);
  color: var(--green-dark);
  margin-bottom: 10px;
}

.staff-info-row {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.staff-card-footer {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* ── GROUPS ── */
.group-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}

.group-block-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.group-block-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
}

.group-block-leader {
  font-size: 0.82rem;
  color: var(--green-light);
}

.group-stats {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.group-stat { color: var(--gray-200); }
.group-stat strong { color: var(--white); }

.group-camper-list {
  padding: 12px 16px;
}

.group-camper-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 8px;
  flex-wrap: wrap;
}

.group-camper-item:last-child { border-bottom: none; }

.group-camper-name {
  font-weight: 700;
  font-size: 0.88rem;
  flex: 1;
}

.group-camper-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* ── REPORTS ── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.report-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1.5px solid var(--gray-200);
  transition: transform var(--transition);
}

.report-card:hover { transform: translateY(-2px); }

.report-icon { font-size: 2.5rem; margin-bottom: 12px; }

.report-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.report-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* ── FIREBASE BOX ── */
.firebase-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.firebase-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-local { background: var(--amber-dark); }
.status-firebase { background: #4caf50; box-shadow: 0 0 6px rgba(76,175,80,0.5); }

.firebase-instructions {
  margin-top: 24px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.firebase-instructions h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
  margin-top: 14px;
}

.firebase-instructions h4:first-child { margin-top: 0; }

.firebase-instructions ol {
  padding-left: 20px;
  font-size: 0.83rem;
  color: var(--text-soft);
}

.firebase-instructions li { margin-bottom: 4px; }

.firebase-instructions code {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,58,46,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box--sm { max-width: 380px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--red); }

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.group-count-opts {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
  grid-column: 1 / -1;
}

.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; font-weight: 600; }

/* ── TRANSPORT WARNING BADGE ── */
.transport-detail {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--green-mid);
  font-weight: 700;
}

/* ── NO-PUBLISH ALERT in admin ── */
.no-publish-alert {
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .app-main { padding: 16px 10px; }
  .reg-form { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; }
  .section-actions { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; justify-content: center; }
}

@media print {
  .app-header, .tab-nav { display: none; }
  .tab-section { display: block !important; }
  .btn { display: none; }
}

/* ── LOGIN SCREEN ── */
.login-screen {
  min-height: 100vh;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(82,183,136,0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(233,196,106,0.1) 0%, transparent 50%);
}

.login-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.login-brand h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
}

.login-brand p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.login-section p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.login-note {
  background: var(--amber);
  color: var(--green-dark) !important;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  display: inline-block;
  margin-bottom: 14px !important;
}

.login-divider {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 24px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--gray-200);
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

.login-error {
  background: var(--red-pale);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.btn--full { width: 100%; justify-content: center; }

/* ── SUCCESS BANNER ── */
.success-banner {
  background: #d4f7d4;
  color: #1a6b1a;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 2px solid #a8e6a8;
}

/* ── ADMIN USER LABEL ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user {
  font-size: 0.75rem;
  color: var(--green-light);
  font-weight: 700;
  display: none;
}

@media (min-width: 600px) {
  .admin-user { display: block; }
}

@media (max-width: 480px) {
  .login-box { padding: 28px 20px; }
}

/* ── CAMPER ENTRY BOX (public multi-camper flow) ── */
.camper-entry-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px dashed var(--green-light);
  margin-bottom: 20px;
}

.btn--add-camper {
  width: 100%;
  justify-content: center;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
  transition: background var(--transition);
}
.btn--add-camper:hover { background: var(--green-dark); }

/* ── PUB CAMPER LIST ── */
.pub-camper-list { display: flex; flex-direction: column; gap: 10px; }

.pub-camper-item {
  background: var(--white);
  border: 2px solid var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-camper-item-info { flex: 1; }

.pub-camper-item-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.pub-camper-item-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.pub-camper-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-pale);
  flex-shrink: 0;
}

.pub-camper-item-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pub-campers-empty {
  text-align: center;
  padding: 20px;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

/* ── LOGOS ── */
.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}

.login-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber);
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
