:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f4f8fb;
  background: #091a29;
  font-synthesis: none;
  --muted: #c0cfdb;
  --accent: #80d1f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
body,
h1,
h2,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 50%;
  animation: scene-in 1.6s ease-out both;
}
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(5 17 29 / 26%) 0%,
      rgb(5 17 29 / 16%) 36%,
      rgb(5 17 29 / 89%) 73%,
      #081725 100%
    ),
    linear-gradient(0deg, rgb(5 17 29 / 78%), transparent 50%, rgb(5 17 29 / 40%));
}
.login-shell {
  position: relative;
  max-width: 1840px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 96px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.masthead {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(197 220 238 / 20%);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
}
.identity svg {
  width: 27px;
  height: 30px;
  color: var(--accent);
}
.private {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.private svg {
  width: 14px;
  height: 14px;
}
.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  align-items: center;
  gap: clamp(32px, 8vw, 150px);
  padding: 65px 0 76px;
}
.brand {
  align-self: end;
  padding-bottom: 12px;
  animation: content-in 0.7s 0.08s both;
}
.eyebrow {
  color: var(--accent);
  font:
    10px 'Cascadia Mono',
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  line-height: 1.6;
}
h1 {
  font-size: clamp(104px, 14vw, 230px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin: 12px 0 18px -9px;
}
h1 span {
  color: var(--accent);
}
.brand-description {
  color: #e2edf5;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.brand-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 29px 0 17px;
}
.brand-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.access {
  animation: content-in 0.7s 0.2s both;
}
h2 {
  font-size: clamp(32px, 3vw, 45px);
  font-weight: 550;
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.access-description {
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.primary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 28px;
  padding: 15px 18px;
  color: #071c2c;
  background: #80d1f6;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
}
.primary > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.primary .arrow {
  margin-left: auto;
  transition: transform 0.18s;
}
.primary:hover {
  background: #b0e5fd;
  transform: translateY(-2px);
}
.primary:hover .arrow {
  transform: translateX(3px);
}
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.secondary {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: #d2eafa;
  text-underline-offset: 4px;
}
.session {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgb(197 220 238 / 22%);
}
.session strong {
  display: block;
  color: #e3eff7;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.session strong:empty {
  display: none;
}
.session p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 7px;
}
.session .invitation {
  margin-top: 14px;
  color: #aabdcf;
}
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 75px;
  border-top: 1px solid rgb(197 220 238 / 20%);
  color: #afc2d1;
  font:
    10px 'Cascadia Mono',
    Consolas,
    monospace;
  letter-spacing: 0.02em;
}
.login-footer a {
  color: inherit;
  text-decoration: none;
}
.login-footer a:hover {
  color: #fff;
}
noscript p {
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.6;
}
@keyframes scene-in {
  from {
    opacity: 0.4;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .login-shell {
    padding: 0 26px;
  }
  .masthead {
    min-height: 74px;
  }
  .identity {
    font-size: 10px;
    gap: 9px;
  }
  .private {
    font-size: 10px;
  }
  .login-main {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 38px 0;
  }
  .scene img {
    object-position: 32% 20%;
  }
  .scene::after {
    background: linear-gradient(
      180deg,
      rgb(5 17 29 / 20%),
      rgb(5 17 29 / 32%) 20%,
      rgb(5 17 29 / 90%) 48%,
      #081725 78%
    );
  }
  .brand {
    align-self: auto;
    padding: 0;
  }
  h1 {
    font-size: clamp(96px, 26vw, 150px);
    margin: 4px 0 8px -4px;
  }
  .brand-description {
    font-size: 18px;
  }
  .brand-rule,
  .brand-detail {
    display: none;
  }
  h2 {
    font-size: 32px;
    margin: 12px 0;
  }
  .access-description {
    font-size: 13px;
    min-height: 0;
  }
  .primary {
    margin-top: 21px;
  }
  .session {
    margin-top: 21px;
    padding-top: 15px;
  }
  .login-footer {
    min-height: 66px;
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .login-shell {
    padding: 0 20px;
  }
  .identity {
    letter-spacing: 0.12em;
  }
  .private {
    gap: 5px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
