:root {
  color-scheme: light;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: #111b3b;
  background: #faf7ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #111b3b;
  --purple: #7700e8;
  --violet: #a13bff;
  --plum: #82006d;
  --lavender: #f4eaff;
  --stroke: #b56aff;
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body { min-height: 100svh; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-layout {
  display: grid;
  grid-template-columns: 61.8fr 38.2fr;
  min-height: 100svh;
  overflow: hidden;
  background: #fbf8ff;
}

.welcome-art {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #f4eaff;
}
.welcome-art::after {
  position: absolute;
  inset: 0 -1px 0 auto;
  width: 7.5%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(251, 248, 255, .64));
}
.welcome-art__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  object-position: center;
}

.login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(32px, 3.2vw, 122px) clamp(28px, 3.1vw, 120px);
  background:
    radial-gradient(ellipse at 88% 8%, rgba(239, 222, 255, .46), transparent 37%),
    linear-gradient(135deg, #fff 0%, #fff 46%, #faf6ff 100%);
}
.login-panel { padding-bottom: clamp(28px, 3.1vw, 118px); }
.login-content { width: min(100%, 1320px); }
.brand {
  display: block;
  width: clamp(250px, 26vw, 1000px);
  margin: 0 0 clamp(34px, 2.25vw, 86px) clamp(12px, 2.8vw, 108px);
  color: inherit;
  text-decoration: none;
}
.brand__image { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

.login-heading { margin-bottom: clamp(35px, 2.45vw, 94px); }
.login-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 3.45vw, 132px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.1;
  white-space: nowrap;
}
.login-heading p {
  margin: clamp(4px, .35vw, 14px) 0 0;
  color: #806b99;
  font-size: clamp(21px, 1.82vw, 70px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.login-form { display: grid; gap: clamp(18px, 1.35vw, 52px); }
.field-group { display: grid; gap: clamp(6px, .42vw, 16px); }
.field-group label { color: var(--navy); font-size: clamp(20px, 1.48vw, 57px); font-weight: 800; }
.input-wrap {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.08vw, 42px);
  min-height: clamp(58px, 3.75vw, 144px);
  padding: 0 clamp(18px, 1.35vw, 52px);
  border: clamp(1px, .09vw, 3px) solid var(--stroke);
  border-radius: clamp(13px, .85vw, 33px);
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 0 rgba(161, 59, 255, 0);
  transition: box-shadow .18s ease, background .18s ease;
}
.input-wrap:focus-within { background: #fff; box-shadow: 0 0 0 5px rgba(161, 59, 255, .12); }
.input-wrap > svg, .visibility-toggle svg {
  width: clamp(24px, 1.75vw, 67px);
  height: clamp(24px, 1.75vw, 67px);
  flex: none;
  fill: none;
  stroke: #8e70a9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: clamp(18px, 1.44vw, 55px);
  font-weight: 600;
}
.input-wrap input::placeholder { color: #806d98; opacity: 1; }
.visibility-toggle {
  display: grid;
  place-items: center;
  width: clamp(35px, 2.4vw, 92px);
  height: clamp(35px, 2.4vw, 92px);
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.visibility-toggle:hover svg, .text-link:hover { color: #6400c8; stroke: #6400c8; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: calc(clamp(18px, 1.35vw, 52px) * -.55); }
.text-link {
  padding: 0;
  border: 0;
  color: var(--purple);
  background: transparent;
  font-size: clamp(16px, 1.3vw, 50px);
  font-weight: 800;
}
.primary-button, .secondary-button {
  width: 100%;
  min-height: clamp(62px, 4.25vw, 163px);
  border-radius: 999px;
  font-size: clamp(21px, 1.72vw, 66px);
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button {
  margin-top: clamp(13px, .8vw, 31px);
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, #910075 0%, #78005d 100%);
  box-shadow: 0 8px 22px rgba(118, 0, 91, .09);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(118, 0, 91, .19); }
.secondary-button {
  border: clamp(1px, .1vw, 4px) solid var(--purple);
  color: var(--purple);
  background: rgba(255, 255, 255, .48);
}
.secondary-button:hover { background: #f4eaff; }
.separator { display: flex; align-items: center; gap: clamp(22px, 1.85vw, 71px); margin: clamp(0px, -.08vw, -3px) 0; color: #806d98; }
.separator span { height: 2px; flex: 1; background: #b56aff; }
.separator b { font-size: clamp(19px, 1.55vw, 60px); font-weight: 800; }
.form-message { min-height: 1.4em; margin: 0; color: #6c427d; font-size: clamp(13px, .95vw, 36px); text-align: center; }
.form-message:empty { display: none; }

@media (max-width: 1200px) and (min-width: 801px) {
  .login-layout { grid-template-columns: 55fr 45fr; }
  .login-panel { padding-inline: clamp(24px, 3.2vw, 48px); }
  .brand { margin-left: 5%; }
  .login-heading h1, .login-heading p { white-space: normal; }
}

@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .login-layout { display: flex; flex-direction: column; min-height: 100svh; overflow: visible; }
  .welcome-art { order: 0; min-height: 34svh; height: 34svh; }
  .welcome-art__image { min-height: 0; height: 100%; object-position: 48% 34%; }
  .welcome-art::after { inset: auto 0 -1px; width: auto; height: 18%; background: linear-gradient(180deg, transparent, #fcfaff); }
  .login-panel { order: 1; display: block; flex: 1; padding: 18px clamp(22px, 6vw, 48px) 36px; background: #fcfaff; }
  .login-panel { padding-bottom: clamp(28px, 3.1vw, 118px); }
.login-content { width: min(100%, 520px); margin: 0 auto; }
  .brand { width: min(100%, 280px); margin: 0 0 23px; }
  .brand__mark { width: 50px; }
  .brand__word { font-size: 34px; }
  .login-heading { margin-bottom: 26px; }
  .login-heading h1 { font-size: clamp(32px, 8vw, 42px); white-space: normal; }
  .login-heading p { font-size: clamp(17px, 4.5vw, 21px); white-space: normal; }
  .login-form { gap: 16px; }
  .field-group { gap: 6px; }
  .field-group label { font-size: 17px; }
  .input-wrap { min-height: 56px; padding-inline: 15px; border-radius: 13px; }
  .input-wrap > svg, .visibility-toggle svg { width: 23px; height: 23px; }
  .input-wrap input { font-size: 16px; }
  .visibility-toggle { width: 34px; height: 34px; }
  .forgot-row { margin-top: -5px; }
  .text-link { font-size: 15px; }
  .primary-button, .secondary-button { min-height: 56px; font-size: 18px; }
  .primary-button { margin-top: 7px; }
  .separator { gap: 18px; }
  .separator b { font-size: 16px; }
  .form-message { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* The approved artwork defines the desktop composition at its original ratio. */
@media (min-width: 801px) and (min-aspect-ratio: 1001/1000) {
  .login-layout {
    position: relative;
    display: block;
    min-height: max(100svh, 56.25vw);
    background: #f6f1fc url("assets/login-desktop-reference.png") center top / 100% 100% no-repeat;
  }
  .welcome-art { position: absolute; width: 1px; height: 1px; min-height: 0; clip-path: inset(50%); }
  .login-panel, .login-content, .login-form, .field-group, .input-wrap {
    display: contents;
  }
  .brand, .login-heading, .field-group label, .separator {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .input-wrap > svg, .visibility-toggle svg { display: none; }
  .input-wrap input, .visibility-toggle, .forgot-row, .primary-button, .secondary-button, .form-message {
    position: absolute;
    margin: 0;
  }
  .input-wrap input {
    left: 66.55%; top: 41.445%; width: 26%; height: 4.887%;
    padding: 0 .28vw; border-radius: .45vw;
    font-size: 1.44vw;
  }
  .field-group--password input { top: 54.304%; width: 24.8%; }
  .input-wrap input::placeholder { color: transparent; }
  .input-wrap input:focus, .input-wrap input:not(:placeholder-shown), .input-wrap input:autofill { background: #f3eefb; }
  .input-wrap input:focus-visible, .login-form button:focus-visible { outline: 3px solid #7700e8; outline-offset: 3px; }
  .visibility-toggle { left: 92%; top: 54.015%; width: 3.5%; height: 5.42%; }
  .visibility-toggle[aria-pressed="true"]::after {
    content: ""; width: 58%; height: 2px; background: #806b99; transform: rotate(-35deg);
  }
  .forgot-row { right: 4.4%; top: 60.946%; width: 16%; height: 3.731%; }
  .text-link { width: 100%; height: 100%; }
  .primary-button, .secondary-button {
    left: 62.1%; width: 34.25%; min-height: 0;
  }
  .primary-button { top: 69.065%; height: 7.463%; }
  .secondary-button { top: 84.897%; height: 6.859%; }
  .login-form .primary-button, .login-form .secondary-button, .login-form .text-link {
    color: transparent; background: transparent; border: 0; box-shadow: none; transform: none;
  }
  .form-message { top: 92.662%; left: 62.1%; width: 34.25%; font-size: .95vw; }
}


/* Fit the login to the visible viewport, including the mobile browser chrome. */
.login-layout { height: 100dvh; min-height: 0; }
@media (min-width: 801px) and (min-aspect-ratio: 1001/1000) {
  .login-layout { min-height: 0; }
}
@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .login-layout { overflow: hidden; }
  .welcome-art { height: clamp(52px, 26dvh, 420px); min-height: 0; flex: none; }
  .login-panel { min-height: 0; display: grid; align-items: center; padding-block: clamp(5px, 1.4dvh, 16px); }
  .brand { width: min(100%, 280px, 43dvh); margin-bottom: clamp(5px, 1.5dvh, 23px); }
  .login-heading { margin-bottom: clamp(6px, 2dvh, 26px); }
  .login-heading h1 { font-size: clamp(20px, min(7vw, 5dvh), 42px); }
  .login-heading p { font-size: clamp(13px, 2.5dvh, 21px); }
  .login-form { gap: clamp(3px, 1.25dvh, 16px); }
  .field-group { gap: clamp(2px, .6dvh, 6px); }
  .field-group label, .text-link { font-size: clamp(12px, 2.4dvh, 17px); }
  .input-wrap, .primary-button, .secondary-button { min-height: clamp(30px, 8dvh, 56px); }
  .primary-button, .secondary-button, .separator b { font-size: clamp(13px, 2.8dvh, 18px); }
  .primary-button, .forgot-row { margin-top: 0; }
  .visibility-toggle { height: 28px; }
  .form-message { font-size: clamp(11px, 2dvh, 13px); }
}
@media (max-height: 490px) and (max-width: 800px), (max-height: 490px) and (max-aspect-ratio: 1/1) {
  .welcome-art { height: 10dvh; }
}
@media (max-height: 370px) and (max-width: 800px), (max-height: 370px) and (max-aspect-ratio: 1/1) {
  .login-layout:focus-within .welcome-art, .login-layout:focus-within .brand { display: none; }
}

@media (max-width: 800px) and (min-height: 491px) and (max-height: 740px) { .welcome-art { height: 16dvh; } }
.local-preview {
  position: fixed;
  right: .6rem;
  bottom: .5rem;
  z-index: 2;
  padding: .25rem .55rem;
  border-radius: .5rem;
  background: #fff;
  color: #680056;
  font: 600 .75rem/1.3 system-ui, sans-serif;
}
.local-preview:focus-visible { outline: 2px solid #7700e8; }
.keep-session { color:#4f3264; font-size:clamp(11px,1.12vw,38px); }
.keep-session input { accent-color:#790460; }
@media (min-width:801px) and (min-aspect-ratio:1001/1000) {
  .keep-session { position:absolute; top:61.1%; left:62.35%; }
}
