/* ============================================================
   LOGIN POPUP CSS
   Covers: overlay, popup box, Google button, inputs,
   CTA button, links, close button
============================================================ */

/* ---- OVERLAY ---- */

.login-pop-up-section {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-pop-up-section.hidden {
  display: none;
}

/* ---- POPUP BOX ---- */

.login-pop-up-sub {
  background: white;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  padding: 48px 44px 36px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---- TITLE ---- */

.login-welcome-message {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: #1e1e1f;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 10px;
}

/* ---- SECTION HEADINGS (Login with Google / Login with Email) ---- */

.login-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.email-login-heading {
  margin-top: 8px;
}

/* ---- GOOGLE BUTTON ---- */

.google-login-button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 4px;
}

.login-button.google-login-button {
  background: none;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1f;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 0;
}

.google-login-button-wrap:hover {
  border-color: #2a9d8f;
  background: #f9fefe;
}

.google-icon {
  width: 18px;
  height: 18px;
}

/* ---- OR DIVIDER ---- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0;
  color: #9e9e9e;
  font-weight: 500;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* ---- INPUT LABELS ---- */

.user-info-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.email-heading {
  margin-top: 0px;
}

.password-heading {
  margin-top: 14px;
}

/* ---- INPUT FIELDS ---- */

.user-input-bar {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #1e1e1f;
  padding: 0 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.user-input-bar::placeholder {
  color: #bbb;
}

.user-input-bar:focus {
  border-color: #2a9d8f;
}

/* ---- FORGOT PASSWORD ---- */

.forgot-password {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #2a9d8f;
  margin-top: 8px;
  cursor: pointer;
  width: fit-content;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ---- PASSWORD GUIDELINES ---- */

.password-guidelines {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

/* ---- ERROR MESSAGE ---- */

.error-message {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #e05c5c;
  margin-top: 8px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* ---- CTA BUTTON (Login / Sign Up with Email) ---- */

.login-button.email-login-button {
  width: 100%;
  height: 48px;
  background: #1e1e1f;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.15s ease;
}

.login-button.email-login-button:hover {
  opacity: 0.85;
}

/* ---- SWITCH BETWEEN LOGIN / SIGNUP ---- */

.sign-up-message {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 18px;
}

.message-sign-up-link {
  color: #2a9d8f;
  cursor: pointer;
  margin-left: 4px;
  font-weight: 600;
}

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

/* ---- TERMS & PRIVACY ---- */

.tos-pp {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #1e1e1f;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.tos-pp .tos-link,
.tos-pp .pp-link {
  color: #2a9d8f;
  cursor: pointer;
  text-decoration: underline;
}

/* .tos-pp .tos-link:hover,
.tos-pp .pp-link:hover {
  text-decoration: underline;
} */

/* ---- CLOSE BUTTON ---- */

.login-close-wrap {
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  padding: 4px;
}

.login-close {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.login-close:hover {
  opacity: 0.8;
}


@media (max-width: 768px) {
  .login-welcome-message {
    font-size: 27px;
  }
}