.auth-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.auth-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  animation: heroSlideDown 1.7s var(--ease) forwards;
  transform: translateY(-70px) scale(1.05);
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.28)),
    linear-gradient(to right, rgba(18, 18, 18, 0.40), rgba(18, 18, 18, 0.12));
  z-index: 1;
}
.input-group.error input {
  border: 2px solid #f02849; /* Facebook red */
  background: rgba(255, 255, 255, 0.10);
}

.error-text {
  color: #f02849;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.input-group.error .error-text {
  display: block;
}

.auth-form { display:none; }
.auth-form.active { display:block; }

.auth-section {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 70px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
}

.auth-copy {
  color: #fff;
  max-width: 580px;
}

.auth-kicker {
  text-align: left;
  margin-bottom: 14px;
  color: #e7bf8e;
}

.auth-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 600;
  margin-bottom: 22px;
}

.auth-title span {
  color: var(--gold);
  font-style: italic;
}

.auth-text {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.90);
  margin-bottom: 28px;
  max-width: 540px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.auth-feature i {
  color: var(--gold);
}

.auth-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 24px;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-20px);
  transition: 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

.form-extra {
          margin-top: 20px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
 
}

.form-extra a:hover {
   color:#b57d4c;
}

.tab-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: transparent;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #d1a24f, #b57d4c);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtext {
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  margin-bottom: 22px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.input-group label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 0 16px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.62);
}

.input-group input:focus {
  border-color: #e2b56f;
  background: rgba(255,255,255,0.16);
}

.auth-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.primary-auth-btn {
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1e5732, #218f42);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.primary-auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.22);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: rgba(122, 90, 54, 0.55);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}

.guest-auth-btn {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.guest-auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.18);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-copy {
    max-width: 100%;
  }

  .auth-card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .auth-section {
    padding: 160px 0 60px;
  }

  .auth-title {
    font-size: 3rem;
  }

  .auth-card {
    padding: 20px;
    border-radius: 24px;
  }

  .auth-feature {
    width: 100%;
    border-radius: 18px;
  }
}

#logoutBtn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 80, 80, 0.2);
  border: 1px solid rgba(255, 80, 80, 0.4);
  transition: 0.3s;
}

#logoutBtn:hover {
  background: rgba(255, 80, 80, 0.4);
  transform: translateY(-2px);
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #ff6b6b;
}


