/* ===========================
   THEME VARIABLES
   =========================== */
:root {
  --um-primary: #0077B6;   /* Deep Blue */
  --um-secondary: #48CAE4; /* Light Blue */
  --um-accent: #F4A261;    /* Warm Orange */
  --um-bg: #F8F9FA;        /* Soft White */
  --um-dark: #333;         /* Text color */
  --um-error: #d9534f;     /* Error red */
  --um-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===========================
   POPUP BASE STYLES
   =========================== */
.um-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.um-popup.active {
  display: flex;
  opacity: 1;
}

/* Popup Content Box */
.um-popup-content {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  border-radius: 1.2rem;
  position: relative;
  box-shadow: var(--um-shadow);
  animation: popupFadeIn 0.3s ease-in-out;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.um-popup.active .um-popup-content {
  transform: scale(1);
}

/* Close Button */
.um-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--um-dark);
  transition: color 0.2s ease;
}

.um-popup-close:hover {
  color: var(--um-primary);
}

/* ===========================
   LOGIN / SIGN-UP TOGGLE TABS
   =========================== */
.um-popup-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  background: #f5f5f5;
  padding: 6px;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.um-tab-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555;
  border-radius: 8px;
  background: transparent;
  transition: all 0.25s ease;
}

.um-tab-btn:hover {
  background-color: rgba(72, 202, 228, 0.15);
}

.um-tab-btn.active {
  background-color: var(--um-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===========================
   TAB CONTENT
   =========================== */
.um-tab-content {
  display: none;
}

.um-tab-content.active {
  display: block;
}

/* ===========================
   FORM STYLING
   =========================== */
.um-popup .um {
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Inputs */
.um-popup .um input[type="text"],
.um-popup .um input[type="email"],
.um-popup .um input[type="password"],
.um-popup .um input[type="number"],
.um-popup .um textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--um-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.um-popup .um input:focus,
.um-popup .um textarea:focus {
  border-color: var(--um-primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
  outline: none;
}

/* Labels */
.um-popup .um .um-field-label {
  font-weight: 600;
  color: var(--um-dark);
  margin-bottom: 5px;
  display: block;
}

/* Buttons */
.um-popup .um input[type="submit"],
.um-popup .um button,
.um-popup .um .um-button {
  background-color: var(--um-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.1s ease;
}

.um-popup .um input[type="submit"]:hover,
.um-popup .um button:hover,
.um-popup .um .um-button:hover {
  background-color: #005f91 !important;
  transform: translateY(-2px);
}

/* Links (Forgot Password, etc.) */
.um-popup .um a {
  color: var(--um-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.um-popup .um a:hover {
  text-decoration: underline;
}

/* Messages / Errors */
.um-popup .um .um-field-error {
  color: var(--um-error);
  font-size: 0.85rem;
}

.um-popup .um .um-message {
  background: #e9f7ef;
  border: 1px solid #b2dfdb;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ===========================
   ANIMATION
   =========================== */
@keyframes popupFadeIn {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}









/* server message container inside popup form */
.um-popup .um-popup-server-messages {
  margin-bottom: 12px;
}

/* re-use UM error style */
.um-popup .um-popup-server-messages .um-field-error,
.um-popup .um-popup-server-messages .um-message {
  color: var(--um-error);
  background: transparent;
  padding: 6px 0;
  font-size: 0.95rem;
}





.popup-overlay { display: none; /* hidden by default */ }
.popup-overlay.active { display: flex; /* show when active */ }







.my-account-btn {
  background-color: #48CAE4; /* Your secondary color */
  font-weight: 600;
}








/* Google Login Section */
.google-login-section {
  text-align: center;
  margin-top: 20px;
}

.google-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  color: #888;
  font-size: 14px;
  position: relative;
}

.google-divider::before,
.google-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
  margin: 0 10px;
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  color: #444;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.google-login-btn:hover {
  background: #f7f7f7;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

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