:root {
  color-scheme: light;
  --primary: #4f7fe8;
  --primary-hover: #3566cf;
  --ink: #192b43;
  --body: #647186;
  --line: #e3e9f1;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: #f5f8fc;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--primary); }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Intrinsic height keeps controls reachable when zoomed or using a keyboard.
   Height breakpoints also accommodate the space used by laptop browser chrome. */
.page-shell { width: min(1160px, 100%); min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: clamp(12px, 3svh, 32px) 28px; display: grid; place-items: center; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 12px; }
.login-card { width: 100%; min-height: min(640px, calc(100svh - 64px)); display: grid; grid-template-columns: 1.04fr 1fr; border: 1px solid #e8edf3; border-radius: 24px; background: #fff; box-shadow: 0 16px 60px #1d426b08, 0 2px 8px #1d426b03; overflow: clip; }

.welcome-panel { display: flex; flex-direction: column; position: relative; isolation: isolate; background: #eff6f5; min-width: 0; overflow: hidden; }
.welcome-copy { padding: 36px 38px 0; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 9px; line-height: 14px; letter-spacing: 1.6px; font-weight: 800; margin: 0 0 16px; color: #446a68; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #70a698; box-shadow: 0 0 0 4px #76ad9d16; flex: 0 0 auto; }
h1, h2 { font-family: "Poppins", "Segoe UI", sans-serif; }
#welcome-title { font-size: clamp(30px, 3vw, 40px); line-height: 1.25; letter-spacing: -1.4px; font-weight: 600; margin: 0; }
#welcome-title span { color: var(--primary); }
.welcome-description { color: #61747c; font-size: 13px; font-weight: 500; line-height: 1.8; margin: 14px 0 0; }
.welcome-visual { position: relative; flex: 1; min-height: 280px; margin-top: 10px; }
.visual-circle { position: absolute; width: 325px; height: 325px; background: #d8e6fa; border-radius: 50%; bottom: -15px; left: 50%; transform: translateX(-50%); }
.visual-orbit { position: absolute; border: 1px solid #cbdcdb; border-radius: 50%; left: 50%; transform: translateX(-50%); }
.orbit-outer { width: 432px; height: 432px; bottom: -68px; opacity: .5; }
.orbit-inner { width: 378px; height: 378px; bottom: -41px; opacity: .65; }
.professional-image { position: absolute; height: min(371px, 100%); width: auto; bottom: 0; left: 50%; transform: translateX(-50%); object-fit: contain; z-index: 1; }
.visual-spark { position: absolute; color: #88a6d5; line-height: 1; }
.spark-one { font-size: 29px; right: 60px; top: 23px; transform: rotate(12deg); }
.spark-two { font-size: 18px; left: 62px; bottom: 107px; color: #8db5a8; }
.visual-dot { position: absolute; width: 8px; height: 8px; border: 2px solid #e2b967; border-radius: 50%; left: 97px; top: 19px; }
.service-bubble { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fffffff7; border: 1px solid #fff; padding: 12px; border-radius: 12px; box-shadow: 0 9px 30px #243f6c0d; }
.bubble-repair { left: 22px; top: 70px; transform: rotate(-5deg); }
.bubble-home { right: 21px; bottom: 65px; transform: rotate(4deg); }
.bubble-icon { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 10px; }
.repair-icon { background: #fff5df; }
.home-icon { background: #eef4ff; color: var(--primary); }
.repair-icon img { width: 25px; height: 25px; object-fit: contain; }
.service-bubble strong { display: block; font-size: 11px; font-weight: 800; line-height: 1.5; }
.service-bubble div > span { display: block; font-size: 9px; margin-top: 2px; color: var(--body); font-weight: 500; }
.bubble-check { display: grid; place-items: center; background: #e9f7ee; color: #438661; border-radius: 50%; width: 20px; height: 20px; margin-left: 3px; }
.bubble-check .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.visual-caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 2; background: #223c60e8; color: #fff; border: 1px solid #ffffff30; backdrop-filter: blur(8px); padding: 8px 13px; border-radius: 30px; font-size: 9px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.visual-caption > span { width: 5px; height: 5px; border-radius: 50%; background: #acd3b9; }

.form-panel { display: flex; align-items: center; justify-content: center; padding: 28px 38px; min-width: 0; }
.form-content { width: 100%; max-width: 352px; }
.form-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 108px; height: auto; display: block; }
.help-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; line-height: 16px; font-weight: 600; color: var(--body); }
.help-link .icon { width: 16px; height: 16px; }
.help-link:hover { color: var(--primary-hover); }
.form-title { font-size: 32px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -1px; }
.form-title > span { color: var(--primary); }
.form-description { font-size: 12px; color: var(--body); line-height: 20px; font-weight: 500; margin: 8px 0 24px; }
.field-group > label { font-size: 12px; line-height: 18px; font-weight: 800; display: block; margin-bottom: 7px; }
.input-wrap { position: relative; }
.field-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #8d9bb0; width: 17px; height: 17px; pointer-events: none; }
.input-wrap input { display: block; width: 100%; height: 46px; border: 1px solid #dce3ec; border-radius: 9px; padding: 0 46px 0 43px; font-size: 14px; line-height: 1.5; font-weight: 600; background: #fcfdff; color: var(--ink); outline: none; transition: border-color 160ms, box-shadow 160ms; }
.input-wrap input::placeholder { color: #8995a7; font-weight: 500; opacity: 1; }
.input-wrap:focus-within .field-icon { color: var(--primary); }
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #4f7fe815; background: #fff; }
.input-wrap input[aria-invalid="true"] { border-color: #ba4242; }
.input-wrap input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #ba424215; }
.password-group { margin-top: 16px; }
.password-toggle { position: absolute; width: 42px; height: 38px; top: 50%; transform: translateY(-50%); right: 4px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #8190a5; }
.password-toggle:hover { background: #edf3ff; color: var(--primary-hover); }
.password-toggle .icon { width: 18px; height: 18px; }
.field-error, .field-hint { font-size: 11px; font-weight: 600; line-height: 1.5; margin: 5px 0 0; overflow-wrap: anywhere; }
.field-error { color: #aa3030; }
.field-hint { color: #825a14; }
.form-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.remember-label { display: flex; align-items: center; gap: 7px; min-height: 24px; font-size: 11px; line-height: 16px; font-weight: 600; color: #657186; cursor: pointer; }
.remember-label input { margin: 0; width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.text-button { border: 0; background: transparent; padding: 6px 0; color: #3965bd; font-size: 11px; line-height: 16px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.submit-button { border: 0; border-radius: 9px; background: var(--primary); color: #fff; min-height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 13px; line-height: 20px; font-weight: 700; box-shadow: 0 5px 12px #4f7fe821; transition: background 160ms, box-shadow 160ms; }
.submit-button:hover { background: var(--primary-hover); box-shadow: 0 6px 16px #4f7fe833; }
.submit-button:disabled { opacity: .6; cursor: not-allowed; }
.submit-button .icon { width: 17px; height: 17px; }
.form-status { background: #f1f5ff; border: 1px solid #d7e3ff; border-radius: 8px; color: #335488; font-size: 11px; font-weight: 600; line-height: 1.7; padding: 10px; margin-bottom: 12px; overflow-wrap: anywhere; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.explore-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 20px 0 0; font-size: 11px; line-height: 18px; font-weight: 500; color: var(--body); }
.explore-link { font-weight: 700; color: #3965bd; display: inline-flex; align-items: center; gap: 4px; }
.explore-link .icon { width: 14px; height: 14px; }
.explore-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.terms-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 10px; line-height: 18px; font-weight: 500; color: #657186; margin: 20px 0 0; }
.terms-note > span { color: #acb6c5; }
.terms-note a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }

dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100svh - 32px); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 0; box-shadow: 0 25px 90px #14243a33; }
dialog::backdrop { background: #192b4366; backdrop-filter: blur(4px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-content { position: relative; padding: 32px; }
.dialog-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: #f1f5fa; color: var(--body); border-radius: 50%; position: absolute; top: 15px; right: 15px; }
.dialog-close:hover { background: #e3ebf6; }
.dialog-icon { width: 48px; height: 48px; background: #eef4ff; color: var(--primary); border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.dialog-content h2 { font-size: 23px; line-height: 1.4; font-weight: 600; margin: 0; letter-spacing: -.7px; }
.dialog-content p { color: var(--body); font-size: 13px; font-weight: 500; line-height: 1.9; margin: 12px 0 24px; }

@media (max-width: 1000px) {
  .page-shell { padding-left: 24px; padding-right: 24px; }
  .welcome-copy { padding-left: 28px; padding-right: 28px; }
  #welcome-title { font-size: 32px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .welcome-description { font-size: 12px; }
  .form-panel { padding-left: 28px; padding-right: 28px; }
  .service-bubble { gap: 7px; padding: 10px; }
  .bubble-repair { left: 12px; }
  .bubble-home { right: 12px; }
  .service-bubble strong { font-size: 10px; }
  .service-bubble div > span { font-size: 8px; }
  .bubble-icon { width: 30px; height: 30px; }
  .desktop-break { display: none; }
}

/* Laptop browser chrome can leave a viewport of 600px or less. */
@media (max-height: 760px) {
  .login-card { min-height: min(620px, calc(100svh - 48px)); }
  .welcome-copy { padding-top: 28px; }
  #welcome-title { font-size: 32px; }
  .eyebrow { margin-bottom: 12px; }
  .welcome-description { font-size: 12px; margin-top: 12px; }
  .form-panel { padding-top: 18px; padding-bottom: 18px; }
  .form-brand-row { margin-bottom: 16px; }
  .brand img { width: 96px; }
  .form-title { font-size: 28px; line-height: 1.25; }
  .form-description { line-height: 18px; margin: 6px 0 18px; }
  .field-group > label { font-size: 11px; line-height: 16px; margin-bottom: 6px; }
  .input-wrap input { height: 44px; }
  .password-group { margin-top: 12px; }
  .form-options { margin: 8px 0 12px; }
  .text-button { padding-top: 4px; padding-bottom: 4px; }
  .submit-button { min-height: 44px; }
  .explore-prompt { margin-top: 14px; }
  .terms-note { line-height: 16px; margin-top: 14px; }
}

@media (max-height: 640px) {
  .page-shell { padding-top: 12px; padding-bottom: 12px; }
  .welcome-copy { padding-top: 24px; }
  #welcome-title { font-size: 30px; }
  .welcome-visual { min-height: 250px; }
  .form-panel { padding-top: 16px; padding-bottom: 16px; }
  .form-brand-row { margin-bottom: 12px; }
  .form-title { font-size: 26px; }
  .form-description { margin-bottom: 14px; }
  .field-group > label { margin-bottom: 5px; }
  .input-wrap input { height: 42px; }
  .password-group { margin-top: 10px; }
  .form-options { margin-bottom: 10px; }
  .explore-prompt, .terms-note { margin-top: 12px; }
  .form-panel:has(.field-error:not([hidden]), .field-hint:not([hidden]), .form-status:not([hidden])) .form-description { display: none; }
  .form-panel:has(.field-error:not([hidden]), .field-hint:not([hidden]), .form-status:not([hidden])) .form-title { margin-bottom: 12px; }
}

@media (max-width: 700px) {
  .page-shell { max-width: 480px; padding-left: 18px; padding-right: 18px; }
  .login-card { display: block; min-height: 0; border-radius: 20px; }
  .welcome-panel { display: none; }
  .form-panel { padding-left: clamp(20px, 6vw, 36px); padding-right: clamp(20px, 6vw, 36px); }
  .input-wrap input { font-size: 16px; }
  .input-wrap input::placeholder { font-size: 13px; }
  .form-options { gap: 6px; }
  .form-description { font-size: 12px; }
}

@media (max-width: 360px) {
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .form-panel { padding-left: 20px; padding-right: 20px; }
  .form-brand-row { gap: 10px; }
  .form-title { font-size: 26px; }
  .remember-label, .text-button { font-size: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-card { animation: welcome-in 450ms ease-out both; }
  @keyframes welcome-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}