/* =====================
   AUTH MODAL
   ===================== */
#authModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.auth-modal {
  background: #fffdf8;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0ece4;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.auth-modal-close:hover { background: #e0dbd0; }

/* GUEST POPUP */
.auth-modal-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.auth-modal-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: #ff7f50;
  text-align: center;
  margin-bottom: 8px;
}

.auth-modal-sub {
  font-size: 0.88rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, #ff7f50, #ffa502);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  transition: opacity 0.2s;
}

.auth-btn-primary:hover { opacity: 0.88; }

.auth-btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: #ff7f50;
  border: 1.5px solid #ff7f50;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  transition: all 0.2s;
}

.auth-btn-secondary:hover { background: #fff3ed; }

/* TABS */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f0ece4;
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: #ff7f50;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* FORM */
.auth-form-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  color: #ff7f50;
  margin-bottom: 20px;
}

.auth-input-wrap { margin-bottom: 14px; }

.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-password-wrap { position: relative; }

.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
  color: #333;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus { border-color: #ff7f50; }

.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  width: auto;
  color: #888;
}

/* OTP */
.auth-otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.auth-otp-input {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  transition: border-color 0.2s;
}

.auth-otp-input:focus { border-color: #ff7f50; }

.auth-resend-row {
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-countdown { color: #aaa; }
.auth-resend-link { color: #ff7f50; text-decoration: none; }
.auth-resend-link:hover { text-decoration: underline; }

.auth-form-sub {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 8px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

/* MSG */
.auth-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  display: none;
}

.auth-msg.success { display: block; background: #edfaf3; color: #2e7d52; }
.auth-msg.error { display: block; background: #fff0f0; color: #e05252; }

/* SWITCH */
.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 14px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-switch a { color: #ff7f50; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .auth-modal { padding: 28px 20px; }
  .auth-otp-input { width: 38px; height: 44px; font-size: 1.1rem; }
}