/* Official NLG symbols. The text outlines share measured ink boundaries at both
   ends. Accessible text also acts as a fallback for browsers without masks. */
.brand-signature {
  --mark-size: 44px;
  --symbol: url("assets/nlg-symbol.svg");
  --ink: #00304b;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: calc(var(--mark-size) * .35);
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
}
.signature-symbol {
  flex: 0 0 var(--mark-size);
  width: var(--mark-size);
  height: var(--mark-size);
  background: var(--symbol) center / contain no-repeat;
}
.signature-type { display: grid; gap: 3px; white-space: nowrap; }
.signature-name { font-size: calc(var(--mark-size) * .66); line-height: 1; font-weight: 740; letter-spacing: -.032em; }
.signature-owner { font-size: calc(var(--mark-size) * .26); line-height: 1.15; font-weight: 635; }
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .brand-signature:not([data-pilot]) .signature-type {
    position: relative;
    width: calc(var(--mark-size) * 2.56);
    aspect-ratio: 200 / 77;
    background-color: currentColor;
    -webkit-mask: url("assets/insights-lettering.svg") center / contain no-repeat;
    mask: url("assets/insights-lettering.svg") center / contain no-repeat;
  }
  .brand-signature:not([data-pilot]) .signature-type > * {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%);
  }
}
header.mast { padding-block: 18px; flex-wrap: wrap; }
.mast .brand-signature { --mark-size: 48px; }
.mast .identity { margin-inline-start: auto; overflow-wrap: anywhere; }
.rail .brand-signature { margin: 0 6px 24px; padding-block: 3px 22px; border-bottom: 1px solid #dce4e9; }

body:has(#workspace[hidden]) {
  --access-pad: clamp(24px, 6vw, 40px);
  --edge: #d2d9d8;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 460px);
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 64px) 20px clamp(32px, 13vh, 136px);
  background: radial-gradient(ellipse at 50% 30%, #fcfbf8, #f2f1ec 76%);
}
body:has(#workspace[hidden]) .mast {
  position: relative; isolation: isolate; overflow: hidden;
  background: #00304b;
  border: 0; border-radius: 19px 19px 0 0;
  padding: 31px var(--access-pad);
  box-shadow: 0 10px 42px -24px #15324755;
}
body:has(#workspace[hidden]) .mast::after {
  content: ""; pointer-events: none; position: absolute; z-index: -1;
  right: -52px; top: -95px; width: 150px; height: 154px;
  border: 1px solid #ffffff18; box-shadow: 0 0 0 18px #ffffff05, 0 0 0 36px #ffffff04;
}
body:has(#workspace[hidden]) .mast .brand-signature {
  --mark-size: clamp(55px, 5.5vw, 64px);
  --symbol: url("assets/nlg-symbol-reverse.svg"); --ink: white;
}
body:has(#workspace[hidden]) .mast .identity { display: none; }
body:has(#workspace[hidden]) main {
  width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0;
  background: #fff; border: 1px solid var(--edge); border-top: 0;
  border-radius: 0 0 19px 19px;
  box-shadow: 0 18px 55px -28px #17354545, 0 2px 5px #17354507;
}
#login.login {
  max-width: none; margin: 0; padding: 32px calc(var(--access-pad) - 1px) 35px;
  border: 0; border-radius: inherit; background: transparent; box-shadow: none;
}
#login h1 { font-size: clamp(27px, 4.4vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.045em; }
#loginHint { margin: 9px 0 0; color: #48606b; font-size: .94rem; line-height: 1.55; }
#loginForm { margin-top: 28px; }
#keyLabel { margin-bottom: 7px; font-size: .85rem; color: #183e50; }
.key-entry { position: relative; }
.key-entry input { min-height: 49px; font-size: 16px; padding-inline: 13px 63px; border-color: #8ca1a8; border-radius: 8px; }
#keyVisibility {
  position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%);
  min-height: 40px; margin: 0; padding: 7px 10px; background: transparent; color: #274e61;
  font-size: .8rem; font-weight: 650;
}
#enterWorkspace {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; width: 100%; margin-top: 19px; padding-inline: 16px;
  background: #00304b; color: white; border: 0; border-radius: 8px; font-size: .96rem;
}
#enterWorkspace::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin-inline-end: 3px; }
#accessHelp { margin-block-start: 24px; border-block-start: 1px solid #dbe2e4; }
#accessHelp details { border-block-end: 1px solid #e3e8e9; }
#accessHelp details:last-child { border-block-end: none; }
#accessHelp summary { padding: 12px 2px; color: #23475a; font-size: .87rem; font-weight: 650; cursor: pointer; line-height: 1.45; }
#accessHelp summary::marker { color: #526b78; }
#accessHelp details p { padding: 0 0 15px 2px; color: #415b69; font-size: .88rem; line-height: 1.6; }
#accessHelp summary:focus-visible { outline: 2px solid #146680; outline-offset: 2px; border-radius: 4px; }
#enterWorkspace:hover { background: #124662; }
#enterWorkspace:disabled { opacity: .78; }
body:has(#workspace[hidden]) #status { margin: -14px var(--access-pad) 25px; font-size: .88rem; min-height: 0; }
body:has(#workspace[hidden]) #status:empty { display: none; }

@media (max-width: 1100px) { .rail .brand-signature { --mark-size: 39px; } }
@media (max-width: 950px) { .rail .brand-signature { margin: 0; padding: 6px 0; border: 0; } }
@media (max-width: 600px) {
  header.mast { padding: 14px 16px; }
  .mast .brand-signature { --mark-size: 42px; }
  body:has(#workspace[hidden]) { align-content: start; padding-top: clamp(28px, 11svh, 96px); }
  body:has(#workspace[hidden]) .mast { padding-block: 27px; }
  #login.login { padding-block: 27px 29px; }
}
@media (max-width: 370px) {
  .brandbar .brand-signature { --mark-size: 36px; }
  body:has(#workspace[hidden]) { padding-inline: 14px; }
}
@media (forced-colors: active) {
  .signature-type { forced-color-adjust: none; color: CanvasText; }
  body:has(#workspace[hidden]) .mast .signature-type { color: white; }
}
