/* =========================================================
   SIGN-IN POPUP – MATCH REGISTRATION STYLE
   Scope: .pop-form.pop-sign-log.login
   ========================================================= */

.pop-form.pop-sign-log.login {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Shell wraps left/right columns */
.pop-form.pop-sign-log.login .mg-login-shell {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

/* Default stacked layout (mobile) */
.pop-form.pop-sign-log.login .mg-login-left,
.pop-form.pop-sign-log.login .mg-login-right {
  width: 100%;
}

/* ----------------------------------------------
   LEFT SIDE (logo + copy)
   ---------------------------------------------- */

.pop-form.pop-sign-log.login .mg-login-left {
  display: none;
}

.pop-form.pop-sign-log.login .mg-login-logo {
  width: 230px;
  height: 70px;
  margin-bottom: 26px;
  background-image: url('https://cdn.lofty.com/image/fs/529915036715152/website/30384/cmsbuild/h200_20251016_bdc3761dd7674eb4-png.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.pop-form.pop-sign-log.login .mg-login-heading-clone {
  margin: 0 0 12px;
  text-align: center;
}

.pop-form.pop-sign-log.login .mg-login-heading-clone h2 {
  margin: 0;
}

.pop-form.pop-sign-log.login .mg-login-heading-clone h2,
.pop-form.pop-sign-log.login .mg-login-heading-clone h2 * {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #f9fafb;
}

.pop-form.pop-sign-log.login .mg-login-heading-clone h3 {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5f5;
}

.pop-form.pop-sign-log.login .mg-login-copy {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #d1d5db;
  text-align: center;
  max-width: 320px;
}

/* ----------------------------------------------
   RIGHT SIDE (social + email/password form)
   ---------------------------------------------- */

.pop-form.pop-sign-log.login .mg-login-right {
  padding: 24px 22px 20px;
  background: #ffffff;
}

/* Header on right (mobile only; hidden on desktop later) */

.pop-form.pop-sign-log.login .mg-login-right hgroup {
  text-align: center;
  margin-bottom: 16px;
}

.pop-form.pop-sign-log.login .mg-login-right h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.pop-form.pop-sign-log.login .mg-login-right h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

/* Social iframe */

.pop-form.pop-sign-log.login .mg-login-right iframe {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  border: none;
  overflow: hidden;
  display: block;
}

/* Divider "Or continue with" */

.pop-form.pop-sign-log.login .mg-login-right .desc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.pop-form.pop-sign-log.login .mg-login-right .desc .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.pop-form.pop-sign-log.login .mg-login-right .desc .text {
  white-space: nowrap;
}

/* Inputs (email + password) */

.pop-form.pop-sign-log.login .mg-login-right .v-input {
  margin-bottom: 14px;
}

.pop-form.pop-sign-log.login .mg-login-right .v-input .input-container {
  position: relative;
  padding: 10px 14px 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pop-form.pop-sign-log.login .mg-login-right .v-input .label-top {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 2px;
}

.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input
  input[type='email'],
.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input
  input[type='password'] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
  padding: 2px 0 0;
}

.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input
  input::placeholder {
  color: #9ca3af;
}

.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input
  .input-container:focus-within {
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 1px #1118270f, 0 0 0 6px rgba(15, 23, 42, 0.08);
}

/* Forgot link */

.pop-form.pop-sign-log.login .mg-login-right .v-input.pwd {
  position: relative;
}

.pop-form.pop-sign-log.login .mg-login-right .v-input.pwd .forgot {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  text-align: right;
  float: right;
  cursor: pointer;
}

/* Error text */

.pop-form.pop-sign-log.login .mg-login-right .v-input .mg-error,
.pop-form.pop-sign-log.login .mg-login-right form > .mg-error {
  font-size: 11px;
  color: #b91c1c;
  margin-top: 6px;
}

/* Submit button: gold pill style */

.pop-form.pop-sign-log.login .mg-login-right form input[type='submit'] {
  width: 100%;
  border: none;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  height: 46px;
  padding: 0 24px;
  background: linear-gradient(135deg, #f7d297, #e7ae5d);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.pop-form.pop-sign-log.login
  .mg-login-right
  form
  input[type='submit']:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.pop-form.pop-sign-log.login
  .mg-login-right
  form
  input[type='submit']:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

/* Footer: "New here? Create an account" */

.pop-form.pop-sign-log.login .mg-login-right .pop-footer.create-account {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: #6b7280;
}

.pop-form.pop-sign-log.login
  .mg-login-right
  .pop-footer.create-account
  a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   MOBILE (<= 899px) – single card layout
   ========================================================= */

@media (max-width: 899.98px) {
  .pop-form.pop-sign-log.login .mg-login-shell {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
  }

  .pop-form.pop-sign-log.login .mg-login-left {
    display: none;
  }
}

/* =========================================================
   DESKTOP (>= 900px) – split layout (50/50 below)
   ========================================================= */

@media (min-width: 900px) {
  .pop-form.pop-sign-log.login .mg-login-shell {
    display: flex;
    max-width: 880px;
    margin: 0 auto;
  }

  .pop-form.pop-sign-log.login .mg-login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 36px 34px;
    background: radial-gradient(
        circle at bottom left,
        rgba(251, 191, 36, 0.2),
        transparent 60%
      ),
      #020617;
    color: #e5e7eb;
    border-right: 1px solid #020617;
  }

  .pop-form.pop-sign-log.login .mg-login-right {
    padding: 30px 30px 24px;
  }

  /* Hide original header on right; we show clone on left */
  .pop-form.pop-sign-log.login .mg-login-right hgroup {
    display: none;
  }
}

/* Fix left heading colors on Sign In panel */

.pop-form.pop-sign-log.login .mg-login-heading-clone h2,
.pop-form.pop-sign-log.login .mg-login-heading-clone h2 * {
  color: #f9fafb !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.pop-form.pop-sign-log.login .mg-login-heading-clone h3,
.pop-form.pop-sign-log.login .mg-login-heading-clone h3 * {
  color: #cbd5f5 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Override default popup heading spacing */

.sign-log.broker .pop-sign-log.pop-form hgroup h2 {
  margin-bottom: 0 !important;
  padding-bottom: 15px !important;
}

/* =========================================
   1) Make left/right panels 50% / 50%
   ========================================= */

@media (min-width: 900px) {
  .pop-form.pop-sign-log.register .mg-reg-left,
  .pop-form.pop-sign-log.login .mg-login-left {
    flex: 0 0 50%;
  }

  .pop-form.pop-sign-log.register .mg-reg-right,
  .pop-form.pop-sign-log.login .mg-login-right {
    flex: 0 0 50%;
  }
}

/* =========================================
   2) Neutral social login iframe (no hover effect)
   ========================================= */

.pop-form.pop-sign-log.register .mg-reg-right iframe,
.pop-form.pop-sign-log.login .mg-login-right iframe {
  transition: none;
  box-shadow: none;
  transform: none;
  filter: none;
}

.pop-form.pop-sign-log.register .mg-reg-right iframe:hover,
.pop-form.pop-sign-log.login .mg-login-right iframe:hover {
  box-shadow: none;
  transform: none;
  filter: none;
}

/* =========================================
   PASSWORD TOGGLE (ONLY EYE, NO X)
   ========================================= */

/* Hide Lofty clear (X) icon inside login popup */
.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input
  .input-container
  .iconfont.icon-Empty {
  display: none !important;
}

/* Give space on the right for the eye */
.pop-form.pop-sign-log.login .mg-login-right .v-input .input-container {
  padding-right: 56px;
}

/* Extra space for password field */
.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input.pwd
  .input-container {
  padding-right: 56px;
}

/* Background pill behind the eye icon */
.pop-form.pop-sign-log.login
  .mg-login-right
  .v-input.pwd
  .input-container::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 24px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  pointer-events: none;
}

/* Eye toggle button */
.pop-form.pop-sign-log.login .mg-toggle-password {
  position: absolute;
  top: 50%;
  right: 21px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Eye outline */
.pop-form.pop-sign-log.login .mg-toggle-password::before {
  content: "";
  display: block;
  width: 16px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid #6b7280;
  box-sizing: border-box;
}

/* Eye pupil */
.pop-form.pop-sign-log.login .mg-toggle-password::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7280;
}

/* Active state when password is visible */
.pop-form.pop-sign-log.login .mg-toggle-password.is-visible::before {
  border-color: #111827;
}

.pop-form.pop-sign-log.login .mg-toggle-password.is-visible::after {
  background: #111827;
}
