/* ==========================================================================
   MantraMani — Customer Sign-In (05 · Curved Seam Teal)
   Scoped for WooCommerce form-login.php
   ========================================================================== */

.mm-auth-split-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 5vw, 64px) 20px;
  min-height: 80vh;
}

/* Split Card Container */
.split.lg5 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 640px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fdf8f3;
  box-shadow: 0 24px 60px rgba(14, 124, 140, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ---- Left Side: Image with Curved Seam --------------------------------- */

.lg5 .iside {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.lg5 .iside > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lg5 .ovl {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 18, 0.08) 0%, rgba(10, 20, 18, 0.72) 100%);
  z-index: 1;
}

.lg5 .lmark {
  display: none !important;
}

.lg5 .quote {
  position: absolute;
  left: 34px;
  right: 70px;
  bottom: 34px;
  color: #eafaf5;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.lg5 .seam {
  position: absolute;
  top: 0;
  right: -1px;
  height: 100%;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

/* ---- Right Side: Form Panel ------------------------------------------- */

.lg5 .lpanel {
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fdf8f3;
  color: #23302c;
  --acc: #0e7c8c;
  position: relative;
  z-index: 3;
}

/* Suppress default page heading on My Account pages */
.woocommerce-account .mm-page__head,
.page-id-148 .mm-page__head {
  display: none !important;
}

.lg5 .mm-auth__logo-wrap {
  margin: 0 auto 24px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.lg5 .mm-auth__logo-wrap a {
  display: inline-block !important;
  text-decoration: none !important;
  line-height: 1 !important;
  margin: 0 auto !important;
}

.lg5 .mm-auth__logo {
  display: block !important;
  max-width: 220px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.lg5 .lbrand {
  display: none !important;
}

.lg5 .ltitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #23302c;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lg5 .lsub {
  font-size: 0.88rem;
  margin: 0 0 22px;
  line-height: 1.5;
  color: #5c6f6b;
}

/* Google Sign-in */
.lg5 .google,
.lg5 .mm-auth__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #cfe3e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #23302c;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.lg5 .google:hover,
.lg5 .mm-auth__google:hover {
  border-color: #0e7c8c;
  box-shadow: 0 2px 10px rgba(14, 124, 140, 0.12);
}

.lg5 .mm-auth__google-g {
  flex: 0 0 auto;
}

/* Divider */
.lg5 .or,
.lg5 .mm-auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.75rem;
  color: #a8bdb9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lg5 .or::before,
.lg5 .or::after,
.lg5 .mm-auth__or::before,
.lg5 .mm-auth__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #cfe3e0;
}

/* WooCommerce Form Reset (Eliminate default grey border and padding) */
.lg5 form.login,
.lg5 form.register,
.woocommerce .lg5 form.login,
.woocommerce .lg5 form.register,
.woocommerce-page .lg5 form.login,
.woocommerce-page .lg5 form.register {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: left !important;
}

/* Fields (Explicitly override component-inputs.css 50px height collapse) */
.lg5 .field,
.woocommerce .lg5 .field,
.woocommerce-page .lg5 .field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.lg5 .field > span {
  display: block !important;
  font-size: 0.72rem !important;
  margin: 0 0 6px 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: #6d8480 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  position: static !important;
  transform: none !important;
  pointer-events: auto !important;
}

.lg5 .field input,
.lg5 .field .field__input,
.woocommerce .lg5 .field input,
.woocommerce .lg5 .field .field__input {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  outline: none !important;
  background: #ffffff !important;
  border: 1px solid #cfe3e0 !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  color: #23302c !important;
  margin: 0 !important;
  position: static !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.lg5 .field input:focus,
.lg5 .field .field__input:focus {
  border-color: #0e7c8c !important;
  box-shadow: 0 0 0 3px rgba(14, 124, 140, 0.15) !important;
}

/* Password Field Peek Button */
.lg5 .field.mm-auth__pw input,
.lg5 .field.mm-auth__pw .field__input {
  padding-right: 68px !important;
}

.lg5 .field.mm-auth__pw .show,
.lg5 .field.mm-auth__pw .mm-auth__peek {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  top: auto !important;
  transform: none !important;
  background: none !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  color: #0e7c8c !important;
  font-family: inherit !important;
  z-index: 5 !important;
  padding: 0 !important;
  line-height: 20px !important;
  height: 20px !important;
}

.lg5 .field.mm-auth__pw .show:hover,
.lg5 .field.mm-auth__pw .mm-auth__peek:hover {
  color: #0a5f70 !important;
}

/* Checkbox & Forgot Row */
.lg5 .rowb {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 4px 0 20px 0 !important;
  font-size: 0.82rem !important;
  clear: both !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

.lg5 .keep,
.lg5 .mm-auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5c6f6b;
  font-size: 0.82rem;
  user-select: none;
  margin: 0;
}

.lg5 .keep input,
.lg5 .mm-auth__remember input {
  display: none;
}

.lg5 .keep i {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #a8bdb9;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lg5 .keep input:checked + i,
.lg5 .mm-auth__remember input:checked + i {
  background: #0e7c8c;
  border-color: #0e7c8c;
}

.lg5 .keep input:checked + i::after,
.lg5 .mm-auth__remember input:checked + i::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lg5 .keep em {
  font-style: normal;
}

.lg5 .forgot {
  text-decoration: underline;
  font-size: 0.82rem;
  color: #0e7c8c;
  font-weight: 600;
}

.lg5 .forgot:hover {
  color: #0a5f70;
}

/* Submit Button */
.lg5 .submit,
.lg5 .mm-auth__go,
.lg5 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  background: #0e7c8c;
  color: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.lg5 .submit:hover,
.lg5 .mm-auth__go:hover,
.lg5 button[type="submit"]:hover {
  background: #0a5f70;
}

.lg5 .submit:active,
.lg5 .mm-auth__go:active {
  transform: scale(0.99);
}

/* Alt text / Switch links */
.lg5 .alt {
  margin-top: 18px;
  font-size: 0.84rem;
  text-align: center;
  color: #5c6f6b;
  line-height: 1.5;
}

.lg5 .alt a,
.lg5 .mm-auth__link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: #0e7c8c;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.lg5 .alt a:hover,
.lg5 .mm-auth__link-btn:hover {
  color: #0a5f70;
}

.lg5 .mm-auth__link-btn.strong {
  font-weight: 700;
}

/* Panels */
.lg5 .mm-auth__panel[hidden] {
  display: none !important;
}

.lg5 .mm-auth__step[hidden] {
  display: none !important;
}

/* OTP code input */
.lg5 .mm-auth__code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.38em;
  text-align: center;
  font-weight: 600;
}

.lg5 .mm-auth__sent {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c6f6b;
  text-align: center;
}

.lg5 .mm-auth__foot {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: #8fa09b;
}

.lg5 .mm-auth__msg {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #23302c;
}

.lg5 .mm-auth__msg.is-bad,
.lg5 .mm-auth__notice.is-bad {
  color: #c8102e;
}

.lg5 .mm-auth__notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.08);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Password strength meter */
.lg5 .woocommerce-password-strength {
  display: block;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
}

.lg5 .woocommerce-password-strength.short,
.lg5 .woocommerce-password-strength.bad { color: #c8102e; }
.lg5 .woocommerce-password-strength.good,
.lg5 .woocommerce-password-strength.strong { color: #0e7c8c; }

.lg5 .woocommerce-password-hint {
  display: block;
  margin: 4px 0 0;
  font-size: 12px;
  color: #8fa09b;
}

/* Responsive: < 860px */
@media (max-width: 860px) {
  .mm-auth-split-wrap {
    padding: 16px 12px;
  }

  .split.lg5 {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 18px;
  }

  .lg5 .iside {
    height: 220px;
    min-height: 220px;
  }

  .lg5 .seam {
    display: none;
  }

  .lg5 .quote {
    font-size: 1.15rem;
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .lg5 .lmark {
    top: 20px;
    left: 24px;
  }

  .lg5 .lpanel {
    padding: 34px 24px;
  }

  .lg5 .ltitle {
    font-size: 1.75rem;
  }
}
