:root {
  --camp-green: #2fa66a;
  --camp-green-dark: #1f7a4d;
  --camp-yellow: #ffc94d;
  --camp-orange: #ff8c42;
  --camp-blue: #4dabf7;
  --camp-navy: #1f3b4d;
  --camp-cream: #fffaf0;
  --camp-white: #ffffff;
  --camp-gray: #6b7d87;
  --camp-border: #e7e2d6;
  --shadow-soft: 0 12px 30px rgba(31, 59, 77, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  background: var(--camp-cream);
  color: var(--camp-navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Baloo 2", "Nunito", sans-serif;
}

a {
  color: var(--camp-green-dark);
}

/* ---------- Auth split layout ---------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    min-height: 260px;
  }
}

.auth-panel {
  position: relative;
  background: linear-gradient(160deg, var(--camp-green) 0%, var(--camp-green-dark) 100%);
  color: var(--camp-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
  overflow: hidden;
}

.auth-panel .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
}

.auth-panel .brand .badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--camp-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.auth-panel .pitch {
  z-index: 2;
  max-width: 380px;
}

.auth-panel .pitch h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.auth-panel .pitch p {
  font-size: 1.05rem;
  opacity: 0.92;
}

.auth-panel .scenery {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
}

.auth-panel .scenery svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
}

.auth-panel .sun {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--camp-yellow);
  box-shadow: 0 0 0 14px rgba(255, 201, 77, 0.25);
  z-index: 1;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--camp-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 36px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: var(--camp-navy);
}

.auth-card .subtitle {
  color: var(--camp-gray);
  margin-bottom: 26px;
  font-size: 0.98rem;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--camp-navy);
}

.field-input,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--camp-border);
  font-size: 1rem;
  font-family: inherit;
  background: #fcfbf7;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus,
input:focus {
  outline: none;
  border-color: var(--camp-green);
  box-shadow: 0 0 0 4px rgba(47, 166, 106, 0.15);
  background: var(--camp-white);
}

.helptext {
  display: block;
  font-size: 0.78rem;
  color: var(--camp-gray);
  margin-top: 5px;
}

ul.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #d64545;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-camp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--camp-orange), #ff6b6b);
  color: var(--camp-white);
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 140, 66, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: "Nunito", sans-serif;
}

.btn-camp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 140, 66, 0.45);
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--camp-gray);
}

.auth-switch a {
  font-weight: 800;
  text-decoration: none;
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.alert-success {
  background: #e5f7ec;
  color: var(--camp-green-dark);
  border: 1px solid #bfe9d2;
}

.alert-error {
  background: #fdeaea;
  color: #b23a3a;
  border: 1px solid #f6c9c9;
}

/* ---------- Main app layout (home) ---------- */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--camp-white);
  border-bottom: 1px solid var(--camp-border);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--camp-green-dark);
  text-decoration: none;
}

.app-header .brand .badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--camp-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.app-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-header nav a, .app-header nav button {
  color: var(--camp-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.pill-link {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--camp-green);
  color: var(--camp-white) !important;
}

.hero {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  padding: 0 24px;
}

.hero .badge-emoji {
  font-size: 3rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 12px 0;
  color: var(--camp-navy);
}

.hero p {
  color: var(--camp-gray);
  font-size: 1.1rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  background: var(--camp-white);
  border: 1px solid var(--camp-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.info-card .icon {
  font-size: 1.8rem;
}

.info-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--camp-gray);
  font-size: 0.92rem;
  margin: 0;
}
