/* Campers Nature Nest - Public & Authentication Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #ba4f08;
  --brand-hover: #a54304;
  --brand-light: #fdf5ee;
  --header-bg: linear-gradient(90deg, #c0480c 0%, #b8480b 100%);
  --text: #1f1813;
  --text-muted: #74675b;
}

body.public {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  background-color: #fcf9f5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(206, 103, 31, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(206, 103, 31, 0.05) 0%, transparent 40%);
}

.pub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebdcd0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1e1915;
}

.pub-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c85a17;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(200, 90, 23, 0.3);
}

.pub-brand-icon svg {
  width: 22px;
  height: 22px;
}

.pub-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1e1915;
}

.pub-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(200, 90, 23, 0.3);
  transition: all 0.15s ease;
}

.pub-nav-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 90, 23, 0.4);
}

/* HERO SECTION */
.hero {
  position: relative;
  text-align: center;
  padding: 10vh 24px 7vh;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fbeedb;
  color: #b85210;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 64px);
  margin: 0 0 16px;
  color: #1e1915;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  margin: 0 auto 32px;
  color: #6a5e52;
  max-width: 620px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(200, 90, 23, 0.35);
  transition: all 0.15s ease;
}

.hero-btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 90, 23, 0.45);
}

/* GALLERY / FEATURES */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
}

.gallery figure {
  margin: 0;
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 30, 18, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(44, 30, 18, 0.1);
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery figcaption {
  padding: 16px 20px 20px;
}

.gallery figcaption b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1e1915;
  margin-bottom: 4px;
}

.gallery figcaption span {
  font-size: 13.5px;
  color: #6a5e52;
  line-height: 1.4;
  display: block;
}

.pub-foot {
  margin-top: auto;
  text-align: center;
  padding: 24px;
  font-size: 13.5px;
  color: #7d7266;
  border-top: 1px solid #ebdcd0;
  background: #fdfaf6;
}

/* LOGIN SCREEN */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/bg.png') center/cover no-repeat;
  position: relative;
  padding: 24px;
}

.login-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 18, 12, 0.65), rgba(44, 30, 18, 0.75));
  backdrop-filter: blur(4px);
}

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.login-card-brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(200, 90, 23, 0.35);
  margin-bottom: 12px;
}

.login-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #1e1915;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.login-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a3e33;
}

.login-field input {
  padding: 12px 14px;
  border: 1px solid #dcd1c4;
  border-radius: 12px;
  background: #ffffff;
  color: #1e1915;
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.15s ease;
}

.login-field input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 90, 23, 0.15);
}

.login-btn {
  background: var(--brand);
  color: #ffffff;
  border: 0;
  padding: 13px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 90, 23, 0.35);
  transition: all 0.15s ease;
  margin-top: 6px;
}

.login-btn:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(200, 90, 23, 0.45);
}

.login-back {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.login-back:hover {
  color: var(--brand);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .pub-nav {
    padding: 12px 18px;
  }
  .pub-brand-text {
    font-size: 16px;
  }
  .pub-brand-icon {
    width: 32px;
    height: 32px;
  }
  .pub-nav-btn {
    padding: 7px 16px;
    font-size: 13px;
  }
  .hero {
    padding: 6vh 18px 4vh;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 18px 40px;
  }
  .gallery img {
    height: 180px;
  }
  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .pub-nav {
    padding: 10px 14px;
  }
  .pub-brand-text {
    font-size: 15px;
  }
  .hero-tag {
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .hero-btn-primary {
    padding: 12px 24px;
    font-size: 15px;
  }
}
