:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #111721;
  --ink: #f7f8fa;
  --muted: #acb7c5;
  --line: #323a46;
  --blue: #93cfff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 13% 52%, #321b202e, transparent 43%),
    radial-gradient(ellipse at 84% 17%, #14518632, transparent 48%), var(--bg);
  line-height: 1.5;
}
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: white; }
:focus-visible { outline: 3px solid #81c9ff; outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 2; padding: .7rem 1rem; background: var(--surface); }
.skip:focus { top: .5rem; }
.topbar { padding: 1.1rem clamp(.8rem, 3vw, 3rem) 0; }
.topbar-inner {
  max-width: 82.5rem; margin: auto; min-height: 4.1rem; padding: .5rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid #ffffff1c; border-radius: 1.25rem; background: #090c11d9;
  box-shadow: 0 14px 50px #0004;
}
.brand, .back { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand { gap: .65rem; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px #f2300538, -8px 0 26px #f230051a, 8px 0 26px #3aa8ff22; }
.brand span { display: grid; }
.brand strong { font-size: .96rem; letter-spacing: .065em; }
.brand small { color: var(--muted); font-size: .65rem; letter-spacing: .045em; }
.back { min-height: 2.75rem; gap: .55rem; color: #c3cdd9; font-size: .86rem; }
.back span { color: var(--blue); font-size: 1rem; }
.entry {
  flex: 1; display: grid; align-content: center; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 28.5rem);
  gap: clamp(2.5rem, 7vw, 7rem);
  width: min(calc(100% - 6rem), 66rem); margin: auto; padding: clamp(3.5rem, 8vh, 7rem) 0;
}
.identity { min-width: 0; }
.identity-text { position: relative; z-index: 1; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(3.8rem, 6vw, 6rem); font-weight: 720; line-height: .98; letter-spacing: -.075em; }
h1 span { color: #a3b0c0; white-space: nowrap; }
.identity-text p { max-width: 29ch; margin-top: 1.15rem; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.55; }
.identity-art {
  position: relative; display: grid; place-items: center; isolation: isolate;
  margin-top: .75rem; width: min(100%, 24rem); height: 13.5rem;
  background: radial-gradient(ellipse at 59% 37%, #3aa8ff22 0, transparent 52%),
              radial-gradient(ellipse at 40% 60%, #f230051a, transparent 56%);
}
.identity-art::before {
  position: absolute; content: ""; inset: 0 -6%;
  background-image: linear-gradient(#97bffa12 1px, transparent 1px), linear-gradient(90deg, #97bffa12 1px, transparent 1px);
  background-size: 25px 25px; mask-image: radial-gradient(ellipse, #000 16%, transparent 70%);
}
.identity-art i { position: absolute; border: 1px solid #647e9b66; width: 83%; height: 61%; border-radius: 50%; transform: rotate(-17deg); }
.identity-art i:nth-child(2) { width: 63%; height: 77%; border-color: #43678966; transform: rotate(28deg); }
.identity-art i:nth-child(3) { width: 98%; height: 76%; border-color: #46617b44; transform: rotate(-17deg); }
.identity-art i::after { content: ""; position: absolute; top: 13%; right: 11%; width: .45rem; height: .45rem; border-radius: 50%; background: #80caff; box-shadow: 0 0 .7rem #3aa8ff; }
.identity-art i:nth-child(2)::after { top: 75%; right: 5%; background: #ff8b64; box-shadow: 0 0 .6rem #f23005; }
.identity-art i:nth-child(3)::after { display: none; }
.identity-art img { position: relative; width: 7.3rem; height: auto; border-radius: 50%; filter: drop-shadow(0 12px 12px #0009); }
.panel {
  position: relative; min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: 1.55rem;
  background: linear-gradient(155deg, #171f2a, #0c1017 74%); box-shadow: 0 24px 75px #0004;
}
.panel::before {
  content: ""; position: absolute; top: -1px; left: 12%; width: 76%; height: 1px;
  background: linear-gradient(90deg, transparent, #bc5845, #58b6dc, transparent);
}
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -.055em; line-height: 1.15; }
.intro { margin: .6rem 0 1.65rem; font-size: .96rem; color: var(--muted); }
.fields, .form-group { display: grid; min-width: 0; }
.fields { gap: 1.1rem; }
.form-group { gap: .43rem; }
label, summary { font-size: .93rem; font-weight: 600; }
input:not([type=hidden]) {
  width: 100%; min-width: 0; height: 3rem; padding: .65rem .8rem; border: 1px solid #657283;
  background: #090d13; border-radius: .6rem; color: var(--ink); font: inherit; font-size: 1rem;
}
.hint { color: var(--muted); font-size: .79rem; }
button, summary { cursor: pointer; }
.ms-button, .local-button {
  min-height: 3rem; padding: .7rem .8rem; display: flex; align-items: center; justify-content: center;
  gap: .75rem; font-family: "Segoe UI", Arial, sans-serif; font-size: .98rem; font-weight: 600;
}
.ms-button { border: 1px solid #8c8c8c; border-radius: 3px; background: #fff; color: #2f2f2f; }
.ms-button:hover { background: #f4f4f4; }
.ms-button img { flex: none; }
.local-choice { margin-top: 1.35rem; padding-top: .65rem; border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; list-style: none; color: #d4e0ed; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; height: .48rem; width: .48rem; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
details[open] summary { margin-bottom: .7rem; }
details[open] summary::before { transform: rotate(45deg); }
.local-button { border: 1px solid #437dab; border-radius: .65rem; background: linear-gradient(#1677b8, #105989); color: white; }
.local-button:hover { background: #155f93; }
.password-input-wrapper { position: relative; }
.password-input-wrapper input { padding-right: 3.1rem; }
.password-toggle { position: absolute; right: .22rem; top: .12rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: none; border-radius: .4rem; color: #becbd9; background: transparent; }
.required { color: var(--muted); }
.notice, .mj-alert { margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid #426481; border-radius: .5rem; background: #152638; overflow-wrap: anywhere; font-size: .9rem; }
.mj-alert { border-color: #905149; background: #321d20; color: #ffd2c9; }
.help { display: flex; flex-wrap: wrap; gap: .15rem .45rem; margin-top: 1.1rem; color: var(--muted); font-size: .83rem; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; width: min(calc(100% - 6rem), 76rem); margin: auto; padding: 1rem 0; border-top: 1px solid #ffffff19; color: var(--muted); font-size: .82rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #c0ccda; }
@media (max-width: 48rem) {
  .entry { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 2rem), 31rem); gap: 1.45rem; padding: 2rem 0 2.4rem; }
  .identity { padding: 0 .25rem; }
  h1 { font-size: clamp(2.75rem, 9vw, 3.75rem); }
  .identity-text p { margin-top: .62rem; max-width: none; font-size: 1rem; }
  .identity-art { display: none; }
  footer { width: calc(100% - 2.5rem); }
}
@media (max-width: 25rem) {
  .topbar { padding: .65rem .6rem 0; }
  .topbar-inner { padding: .4rem .7rem; }
  .brand small { font-size: .57rem; }
  .back { font-size: .8rem; gap: .3rem; }
  .panel { padding: 1.35rem 1.1rem; }
}
@media (forced-colors: active) {
  .ms-button, .local-button, .panel { border: 1px solid ButtonText; }
  h1 span, .back, .hint { color: CanvasText; }
}
