/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --orange:       #F47C20;
  --orange-dark:  #d96a10;
  --orange-light: rgba(244, 124, 32, 0.72);
  --brown:        #3B2314;
  --text-dark:    #1a1a1a;
  --text-muted:   #666;
  --border:       #ddd;
  --bg-form:      #f5f5f5;
  --white:        #ffffff;
  --blue-focus:   #2684FF;

  --font-brand:   'Dancing Script', cursive;
  --font-body:    'Nunito', sans-serif;

  --transition:   0.3s ease;
  --radius:       10px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-form);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT – MAIN WRAPPER
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ============================================================
   HERO SECTION  (left column + right form panel)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- LEFT COLUMN ---------- */
.hero__left {
  position: relative;
  overflow: hidden;
  cursor: default;

  background-image: url('./uI/IMG_9423.PNG');
  background-size: cover;
  background-position: center;
}

/* Default state: subtle dark scrim so the photo is visible */
.hero__left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 0, 0.35);
  transition: background var(--transition);
  z-index: 1;
}

/* Hover state: full branded orange overlay */
.hero__left:hover::before {
  background: var(--orange-light);
}

/* Caption – fades in on hover */
.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--white);

  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.hero__left:hover .hero__caption {
  opacity: 1;
  transform: translateY(0);
}

.hero__caption h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero__caption p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  max-width: 340px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ---------- RIGHT COLUMN (form panel) ---------- */
.hero__right {
  background: var(--bg-form);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

/* ============================================================
   AUTH CARD
   ============================================================ */
.auth-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2.4rem 2rem;
  width: 100%;
  max-width: 420px;
}

/* Brand header */
.auth-card__brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.9rem;
  color: var(--orange);
  text-align: center;
  display: block;
  margin-bottom: 0.3rem;
}

.auth-card__title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

/* ============================================================
   FORM PANELS  (login / signup toggled via JS)
   ============================================================ */
.form-panel { display: none; }
.form-panel.is-active { display: block; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

/* Input wrapper holds icon + input + optional toggle */
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 0.8rem;
  transition: border-color var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--blue-focus);
}

.input-wrapper svg.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: transparent;
}

.input-wrapper input::placeholder { color: #aaa; }

/* Password show/hide toggle button */
.btn-toggle-pw {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.btn-toggle-pw svg { width: 18px; height: 18px; }

/* Forgot password link */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* ============================================================
   PRIMARY CTA BUTTON
   ============================================================ */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.85rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s;
  margin-top: 1.2rem;
  text-align: center;
}

.btn-primary:hover  { background: var(--orange-dark); }
.btn-primary:active { transform: scale(0.98); }

/* ============================================================
   DIVIDER  "Or continue with"
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   SOCIAL AUTH BUTTONS
   ============================================================ */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-social:hover { background: #fafafa; border-color: #bbb; }

.btn-social img { width: 20px; height: 20px; }

/* ============================================================
   PANEL SWITCH LINK  (bottom of each form)
   ============================================================ */
.switch-link {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ============================================================
   TERMS & CONDITIONS CHECKBOX ROW
   ============================================================ */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  cursor: pointer;
}

.terms-row input[type="checkbox"] {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.8);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-brand {
  font-family: 'Great Vibes', cursive;;
  font-size: 1.6rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.8rem;
}

.footer-tagline { font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 0.45rem; }

.footer-col ul li a,
.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: background var(--transition), transform 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.scroll-top.visible       { opacity: 1; pointer-events: auto; }
.scroll-top:hover         { background: var(--orange-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE  – hide left column on mobile (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__left {
    display: none;
  }

  .hero__right {
    padding: 2rem 1rem;
    min-height: 100vh;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid  { grid-template-columns: 1fr; }
  .auth-card    { padding: 1.8rem 1.2rem; }
}
