:root {
  font: 16px/1.55 Inter, "Helvetica Neue", Arial, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #0a0a0a;
  background: #fafaf8;
  --blue: #002fa7;
  --line: #cececa;
  --muted: #51534f;
}
* { box-sizing: border-box; }
body, h1, h2, p, fieldset { margin: 0; }
.shell { width: min(1160px, calc(100% - 8vw)); margin-inline: auto; }
header { border-bottom: 1px solid currentColor; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 65px; font-weight: 650; font-size: 20px; }
.mark { display: flex; align-items: flex-end; gap: 3px; width: 31px; height: 31px; padding: 7px; background: var(--blue); }
.mark i { width: 4px; height: 6px; background: white; }
.mark i:nth-child(2) { height: 11px; }
.mark i:nth-child(3) { height: 17px; }
main { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(40px, 12vw, 170px); padding: clamp(42px, 10vh, 110px) 0; }
h1 { margin: 0 0 16px; font-size: clamp(44px, 6vw, 84px); letter-spacing: -.055em; line-height: 1.12; font-weight: 400; }
.intro > p { font-size: clamp(16px, 1.5vw, 21px); }
aside { margin-top: clamp(35px, 8vh, 90px); padding-top: 16px; border-top: 1px solid var(--line); max-width: 410px; }
h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
aside p, .hint, #status { color: var(--muted); }
.access { align-self: start; border-top: 3px solid var(--blue); }
.modes { display: flex; gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
button, input { font: inherit; color: inherit; border-radius: 0; }
button { background: transparent; cursor: pointer; border: 1px solid var(--line); padding: 6px 12px; }
button:disabled { cursor: wait; opacity: .65; }
.modes button { padding: 13px 0 10px; border: none; border-bottom: 3px solid transparent; font-weight: 550; }
.modes [aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
fieldset { border: 0; padding: 0; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 17px 0 5px; }
fieldset > label:first-child { margin-top: 0; }
input { width: 100%; height: 44px; padding: 7px 10px; background: white; border: 1px solid #868783; }
.password-row { display: flex; }
.password-row input { min-width: 0; }
.password-row button { flex: none; margin-left: -1px; }
#submit { width: 100%; background: var(--blue); border: 0; color: white; min-height: 46px; margin: 24px 0 0; font-weight: 550; }
.hint, #status { font-size: 14px; line-height: 1.6; margin-top: 7px; }
#status:not(:empty) { margin-top: 15px; }
#retry { margin-top: 7px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  main { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .intro { display: contents; }
  .intro h1 { margin-bottom: -14px; font-size: 40px; }
  aside { order: 1; margin-top: 4px; max-width: none; }
}
