@font-face {
  font-family: "Plex Sans";
  src: url("./fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #121211;
  --surface: #1b1b19;
  --input: #1b1b19;
  --line: #42423d;
  --text: #f0efe7;
  --muted: #b6b6ac;
  --subtle: #97988f;
  --red: #ff0b2d;
  --red-soft: #ff536a;
  --sans: "Plex Sans", "Segoe UI", Arial, sans-serif;
  font: 100%/1.5 var(--sans);
  color: var(--text);
  background: var(--page);
}
*,
*::before,
*::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #080808; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }
button:disabled { cursor: default; }
.sr-only, .icon-library { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 19px; height: 19px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; gap: .12em; align-items: baseline; color: var(--text); text-decoration: none; white-space: nowrap; line-height: .82; }
.wordmark-tex { height: .64em; width: auto; overflow: visible; color: var(--red); }
.wordmark-mailer { font-size: .91em; font-weight: 510; letter-spacing: -.055em; line-height: .85; }
.app-brand { font-size: 2.45rem; }
.control { position: relative; display: block; min-width: 0; }
.input-action { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; padding: 0; width: 46px; border: 0; color: var(--muted); background: transparent; }
.input-action:hover { color: var(--text); }
.input-action:focus-visible { outline-offset: -4px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 10px 24px; border: none; border-radius: 2px; background: var(--red); color: #100007; font-size: 1rem; font-weight: 650; transition: background-color .15s ease; }
.primary:hover:enabled { background: #ff3953; }
.primary:active:enabled { background: #f11836; }
.primary:disabled { opacity: .7; cursor: progress; }
.primary[aria-busy=true]::before { content: ""; width: 14px; height: 14px; border: 2px solid #21030a44; border-top-color: currentColor; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.error { margin: 0; padding: 4px 0 4px 13px; border-left: 2px solid var(--red); color: #ff9aab; font-size: .94rem; line-height: 1.5; }

.login-shell {
  width: min(1112px, calc(100% - clamp(56px, 13vw, 208px)));
  margin-inline: auto;
  padding-top: clamp(24px, 5.4vh, 68px);
  padding-bottom: 48px;
}
.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 12px 0 clamp(22px, 3vw, 39px);
  border-bottom: 2px solid var(--text);
}
.masthead-brand { font-size: clamp(72px, 8.6vw, 126px); }
.help { position: relative; margin-bottom: -2px; }
.help summary { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 0 6px 8px; list-style: none; font-size: .93rem; color: var(--muted); }
summary::-webkit-details-marker { display: none; }
.help summary:hover, .help[open] summary { color: var(--text); }
.expand-mark { width: 12px; height: 12px; position: relative; }
.expand-mark::before, .expand-mark::after { content: ""; position: absolute; inset: 5px 0 auto; height: 1.5px; background: currentColor; }
.expand-mark::after { transform: rotate(90deg); transition: transform .18s ease; }
.help[open] .expand-mark::after { transform: rotate(0); }
.help-content { position: absolute; z-index: 4; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 40px)); padding: 23px 24px; border: 1px solid var(--line); background: #20201e; }
.help-content h2 { font-size: 1rem; line-height: 1.4; font-weight: 600; margin: 0 0 4px; }
.help-content p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.help-content p + h2 { margin-top: 20px; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(195px, .7fr) minmax(0, 1fr);
  gap: clamp(54px, 10.1vw, 150px);
  padding: clamp(44px, 7.3vh, 84px) 0 clamp(42px, 7vh, 78px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
#provider-list, .custom-settings { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#provider-list legend { padding: 0; margin-bottom: 18px; font-size: 1rem; font-weight: 550; color: var(--muted); }
.provider-options { border-top: 1px solid var(--line); }
.provider-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 59px; padding: 9px 5px 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: color .12s, background-color .12s; }
.provider-option span { order: -1; font-size: clamp(1.16rem, 1.5vw, 1.4rem); line-height: 1.25; font-weight: 470; }
.provider-option input { flex: none; appearance: none; width: 16px; height: 16px; margin: 0; padding: 0; border: 1px solid #72736d; border-radius: 50%; background: transparent; }
.provider-option input:checked { border: 5px solid var(--red); }
.provider-option input:checked + span { font-weight: 650; }
.provider-option:has(input:checked) { color: var(--red-soft); }
.provider-option:hover { background-color: #1d1d1a; }
.provider-option:has(input:focus-visible) { outline: 2px solid var(--red-soft); outline-offset: 3px; }
.provider-option input:focus-visible { outline: 0; }
.login-panel { min-width: 0; }
.login-inner { max-width: 492px; }
.login-inner h1 { font-size: clamp(2.4rem, 3.65vw, 3.35rem); font-weight: 560; line-height: 1.05; letter-spacing: -.045em; margin: -.08em 0 0; overflow-wrap: anywhere; }
.input-note { margin: 13px 0 0; color: var(--muted); line-height: 1.55; font-size: 1rem; }
#login-form { display: grid; gap: 20px; margin-top: 32px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; font-size: .92rem; font-weight: 550; line-height: 1.35; }
.field small { font-size: inherit; font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid #595953; border-radius: 2px; color: var(--text); background: var(--input); font-size: 1rem; font-weight: 400; transition: border-color .14s; }
.field input:focus-visible, .field select:focus-visible { border-color: #d7d6ca; outline: 1px solid #d7d6ca; outline-offset: 0; }
.field input:hover:not(:focus), .field select:hover:not(:focus) { border-color: #84847b; }
.field input::placeholder { color: #8d8e86; opacity: 1; }
.field input:read-only { color: var(--muted); }
.has-action input { padding-right: 47px; }
.select-control select { appearance: none; padding-right: 28px; }
.select-control .end-icon { position: absolute; top: 50%; right: 9px; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#password-toggle .eye-off, #password-toggle[aria-pressed=true] .eye-open { display: none; }
#password-toggle[aria-pressed=true] .eye-off { display: block; }
.custom-settings { display: grid; gap: 15px; }
.custom-settings legend { font-weight: 550; font-size: 1rem; padding: 0; margin: 7px 0 13px; }
.host-pair { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
.login-submit { justify-self: start; min-height: 48px; margin-top: 4px; padding-inline: 25px; }
.session-note { max-width: 395px; margin: 20px 0 0; color: var(--subtle); font-size: .89rem; line-height: 1.45; }
@media (min-width: 1280px) {
  .login-layout { grid-template-columns: 350px minmax(0, 1fr); gap: 13.5%; }
}
@media (max-width: 760px) {
  .login-shell { width: calc(100% - 44px); padding-top: 24px; }
  .masthead { align-items: center; padding: 0 0 22px; border-bottom-width: 1px; }
  .masthead-brand { font-size: clamp(48px, 11vw, 68px); }
  .help summary { gap: 6px; font-size: .85rem; }
  .login-layout { display: block; padding: 25px 0 30px; }
  #provider-list legend { font-size: .92rem; margin-bottom: 9px; }
  .provider-options { display: flex; flex-wrap: wrap; gap: 0 17px; border: 0; }
  .provider-option { min-height: 42px; padding: 2px 0; border: 0; }
  .provider-option span { font-size: 1rem; }
  .provider-option input { position: absolute; bottom: 1px; width: 100%; height: 2px; border: 0; border-radius: 0; }
  .provider-option input:checked { background: var(--red); border: 0; }
  .provider-option:hover { background: none; }
  .login-panel { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--line); }
  .login-inner { max-width: 560px; }
  .login-inner h1 { font-size: clamp(2.05rem, 7.7vw, 2.85rem); }
  .input-note { margin-top: 10px; }
  #login-form { gap: 17px; margin-top: 23px; }
}
@media (max-width: 430px) {
  .login-shell { width: calc(100% - 36px); }
  .masthead-brand { font-size: clamp(32px, 10vw, 45px); }
  .help summary { gap: 5px; }
  .provider-options { gap: 0 15px; }
  .login-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
