/* ==============================================================================
   UNSEEN PLACE — FRONTEND USER AUTHENTICATION & REGISTRATION MODAL
   ============================================================================== */

.up-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.up-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
}

body.up-auth-modal-open {
  overflow: hidden;
}

.up-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.up-auth-modal-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-auth-modal.is-open .up-auth-modal-box {
  transform: translateY(0) scale(1);
}

.up-auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.up-auth-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.up-auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.up-auth-brand-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #093322;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(9, 51, 34, 0.2);
}

.up-auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.up-auth-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.up-auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.up-auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.up-auth-tab-btn.active {
  background: #ffffff;
  color: #093322;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.up-auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.up-auth-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.up-auth-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.up-auth-form .up-form-group {
  margin-bottom: 14px;
}

.up-auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.up-label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.up-forgot-link {
  font-size: 11px;
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.up-forgot-link:hover {
  text-decoration: underline;
}

.up-auth-form input[type="text"],
.up-auth-form input[type="email"],
.up-auth-form input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}

.up-auth-form input:focus {
  background: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.up-form-checkbox-row {
  margin-bottom: 16px;
}

.up-form-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.up-auth-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #093322;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(9, 51, 34, 0.25);
  transition: all 0.2s;
}

.up-auth-submit-btn:hover {
  background: #051f15;
  transform: translateY(-1px);
}

.up-auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.up-auth-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.up-auth-modal-footer p {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Member account page: saved destinations, profile, password
   ========================================================================== */
.up-acc-section { margin-bottom: 28px; }
.up-acc-title { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 14px; }
.up-acc-count { font-weight: 600; color: #64748b; margin-left: 4px; }
.up-acc-muted { font-size: 13px; color: #64748b; margin: 0; }
.up-acc-muted a { color: #059669; font-weight: 700; text-decoration: none; }

.up-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.up-saved-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc;
}
.up-saved-thumb {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #059669, #0ea5e9);
}
.up-saved-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-saved-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-saved-name { font-size: 13px; font-weight: 800; color: #0f172a; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-saved-name:hover { color: #059669; }
.up-saved-loc { font-size: 11px; color: #64748b; }
.up-saved-remove {
  appearance: none; cursor: pointer; border: 1px solid #fecdd3; background: #fff1f2; color: #be123c;
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
}
.up-saved-remove:hover { background: #ffe4e6; }

.up-acc-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.up-acc-card { padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; display: flex; flex-direction: column; }
.up-acc-card label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #334155; margin: 10px 0 4px; }
.up-acc-card input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 13px; background: #ffffff; }
.up-acc-btn {
  align-self: flex-start; margin-top: 16px; cursor: pointer; border: 0; border-radius: 10px;
  padding: 10px 18px; font-size: 13px; font-weight: 800; color: #ffffff; background: #059669;
}
.up-acc-btn:hover { background: #047857; }
.up-acc-btn:disabled { opacity: .6; cursor: wait; }
