/* ============================================================
   STELLAR365 — SIGN IN PAGE OVERRIDE CSS  v10
   ============================================================
   Version: 2026.05.27.10
   Drop in: Power Pages Studio → Styling → Custom CSS (LAST)

   v10 changes vs v08:
   - Keep v08 mobile layout (padding, widths) UNCHANGED — that
     was working correctly.
   - Only bump mobile FONT SIZES so type reads at "A+" comfort
     without resizing buttons/inputs.
   ============================================================ */

/* ============================================================
   HIDE: Register + Redeem invitation tabs
   ============================================================ */
.nav-tabs li a[href*="/Register"],
.nav-tabs li a[href*="RedeemInvitation"],
ul.nav li a[href*="/Register"],
ul.nav li a[href*="RedeemInvitation"] {
  display: none !important;
}
.nav-tabs li:has(a[href*="/Register"]),
.nav-tabs li:has(a[href*="RedeemInvitation"]) {
  display: none !important;
}

/* ============================================================
   COLUMN HEADERS — replace text via ::before/::after overlay
   ============================================================ */
#local-login-heading,
#external-login-heading {
  font-size: 0 !important;
  height: auto !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: block !important;
}
#local-login-heading::before {
  content: "Board Members & Escrow Officers" !important;
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e2761 !important;
  margin-bottom: 6px !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
#local-login-heading::after {
  content: "Sign in with the username VMS provided you." !important;
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #5a6473 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
#external-login-heading::before {
  content: "VMS Staff" !important;
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e2761 !important;
  margin-bottom: 6px !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
#external-login-heading::after {
  content: "Sign in with your VMS work account." !important;
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #5a6473 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ============================================================
   MICROSOFT ENTRA button
   ============================================================ */
button[name="provider"] {
  background-color: #0b5cad !important;
  background: #0b5cad !important;
  border: 1px solid #0b5cad !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0 !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  text-transform: none !important;
  min-width: 240px !important;
  max-width: 100% !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
button[name="provider"]::before {
  content: "Sign in with Microsoft 365" !important;
  font-size: 13px !important;
  display: inline-block !important;
}
button[name="provider"]:hover,
button[name="provider"]:active,
button[name="provider"]:focus {
  background-color: #1e2761 !important;
  background: #1e2761 !important;
  border-color: #1e2761 !important;
  color: white !important;
}

/* ============================================================
   PRIMARY "Sign In" button
   ============================================================ */
button#submit-signin-local,
button#submit-signin-local.btn,
button#submit-signin-local.btn.btn-primary {
  background-color: #1f8a4c !important;
  background: #1f8a4c !important;
  border: 1px solid #1f8a4c !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
button#submit-signin-local:hover,
button#submit-signin-local:active,
button#submit-signin-local:focus,
button#submit-signin-local.btn:hover,
button#submit-signin-local.btn.btn-primary:hover {
  background-color: #16703c !important;
  background: #16703c !important;
  border-color: #16703c !important;
  color: white !important;
}

/* ============================================================
   "Forgot your password?" — link styling
   ============================================================ */
a[href*="ForgotPassword"],
a.btn[href*="ForgotPassword"],
.btn[href*="ForgotPassword"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #0b5cad !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 10px 8px !important;
  text-decoration: none !important;
  margin-left: 6px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
a[href*="ForgotPassword"]:hover {
  color: #1e2761 !important;
  text-decoration: underline !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* ============================================================
   TAB NAVIGATION — hide entire nav
   ============================================================ */
ul.nav-tabs {
  display: none !important;
}

/* ============================================================
   FORM INPUTS — clean text fields, blue focus ring
   ============================================================ */
form.portal-form input[type="text"],
form.portal-form input[type="email"],
form.portal-form input[type="password"] {
  border: 1px solid #e3e6eb !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: white !important;
  box-shadow: none !important;
  max-width: 320px !important;
  width: 100% !important;       /* fluid inside its container */
  box-sizing: border-box !important;
}
form.portal-form input[type="text"]:focus,
form.portal-form input[type="email"]:focus,
form.portal-form input[type="password"]:focus {
  border-color: #0b5cad !important;
  outline: 2px solid #eaf2fb !important;
  outline-offset: 0px !important;
}

/* Field labels (Username, Password) */
form.portal-form label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #5a6473 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Asterisk for required fields */
form.portal-form label .required,
form.portal-form .required {
  color: #b8392f !important;
}

/* "Remember me?" checkbox label */
form.portal-form .checkbox label,
form.portal-form label[for*="RememberMe" i] {
  font-size: 12px !important;
  color: #5a6473 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ============================================================
   FORM ALIGNMENT — DESKTOP (≥721px)
   Padding pulls the form into alignment with audience cards
   below. On mobile this gets overridden — see media query.
   ============================================================ */
div.portal-form, .portal-form {
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 721px) {
  div.portal-form, .portal-form {
    padding-left: 170px !important;
    padding-right: 170px !important;
  }
  /* Username/Password labels stay on one line on desktop */
  form label,
  .portal-form label,
  div.portal-form label {
    white-space: nowrap !important;
  }
}

/* ============================================================
   MOBILE OVERRIDES (≤720px)
   ============================================================
   v10 strategy: keep v08 layout (padding, widths) UNCHANGED.
   Only bump FONT SIZES to give "A+" comfort.
   ============================================================ */
@media (max-width: 720px) {
  /* Collapse the giant desktop padding so the form actually
     fits inside the phone viewport. */
  div.portal-form, .portal-form {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }

  /* Inputs go full-width inside the available space.
     v10 font bump: 13 → 15px */
  form.portal-form input[type="text"],
  form.portal-form input[type="email"],
  form.portal-form input[type="password"] {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 15px !important;
  }

  /* Field labels — v10 bump 12 → 14 */
  form.portal-form label {
    font-size: 14px !important;
  }

  /* "Remember me?" — v10 bump 12 → 14 */
  form.portal-form .checkbox label,
  form.portal-form label[for*="RememberMe" i] {
    font-size: 14px !important;
  }

  /* Microsoft sign-in button shouldn't overflow on a 380px screen.
     v10 font bump on the ::before pseudo-element (13 → 15) */
  button[name="provider"] {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 16px !important;
  }
  button[name="provider"]::before {
    font-size: 15px !important;
  }

  /* Primary green Sign In button — full-width on mobile feels native.
     v10 font bump 13 → 15 */
  button#submit-signin-local,
  button#submit-signin-local.btn,
  button#submit-signin-local.btn.btn-primary {
    width: 100% !important;
    margin-top: 8px !important;
    font-size: 15px !important;
  }

  /* Allow labels to wrap on mobile if a translation makes them long */
  form label,
  .portal-form label,
  div.portal-form label {
    white-space: normal !important;
  }

  /* Column headings — v10 bump 16 → 19 (title), 12 → 14 (desc) */
  #local-login-heading,
  #external-login-heading {
    margin-bottom: 16px !important;
  }
  #local-login-heading::before,
  #external-login-heading::before {
    font-size: 19px !important;
  }
  #local-login-heading::after,
  #external-login-heading::after {
    font-size: 14px !important;
  }

  /* Forgot password — separate line, v10 bump 12 → 14 */
  a[href*="ForgotPassword"],
  a.btn[href*="ForgotPassword"],
  .btn[href*="ForgotPassword"] {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 12px !important;
    text-align: center !important;
    padding: 8px !important;
    font-size: 14px !important;
  }
}

/* ============================================================
   SIGN-IN — ZOOM RESPONSIVENESS (A+ / A++)   v1  2026.05.30.01
   ============================================================
   APPEND to the live sign-in CSS (SignInglobaloverridev01.css).
   Bump that file's ?v= after pasting.

   WHY: the text-size widget applies CSS `zoom`, which scales
   rendered size but does NOT trigger @media (max-width) rules.
   So the sign-in mobile reflow never fires at A+/A++ on desktop
   — the Bootstrap horizontal grid (row > label col + col-md-8
   input col) stays side-by-side and just scales up, so the
   heading wraps one word per line and inputs collide with labels.

   These rules re-key the stacked reflow off the widget's
   html[data-lwv-zoom] attribute. Scoped to .portal-form, so
   they're sign-in-only and inert at normal zoom.
   ============================================================ */

/* Tighten the desktop 170px gutter at high zoom */
html[data-lwv-zoom="1.25"] .portal-form,
html[data-lwv-zoom="1.5"]  .portal-form {
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: 100% !important;
}

/* Stack every grid column — the two login sections AND each
   label/input field row — into a single column */
html[data-lwv-zoom="1.25"] .portal-form [class*="col-"],
html[data-lwv-zoom="1.5"]  .portal-form [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Labels: block, full width, above the input; allow wrapping
   (overrides the desktop white-space:nowrap that causes collision) */
html[data-lwv-zoom="1.25"] .portal-form label,
html[data-lwv-zoom="1.5"]  .portal-form label {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
}

/* Inputs full width (uses .portal-form, not the dead form.portal-form) */
html[data-lwv-zoom="1.25"] .portal-form input[type="text"],
html[data-lwv-zoom="1.25"] .portal-form input[type="email"],
html[data-lwv-zoom="1.25"] .portal-form input[type="password"],
html[data-lwv-zoom="1.5"]  .portal-form input[type="text"],
html[data-lwv-zoom="1.5"]  .portal-form input[type="email"],
html[data-lwv-zoom="1.5"]  .portal-form input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Primary buttons full width at high zoom (match mobile) */
html[data-lwv-zoom="1.25"] button#submit-signin-local,
html[data-lwv-zoom="1.5"]  button#submit-signin-local,
html[data-lwv-zoom="1.25"] button[name="provider"],
html[data-lwv-zoom="1.5"]  button[name="provider"] {
  width: 100% !important;
  min-width: 0 !important;
}