:root {
  color-scheme: light;
  --blue: #0b328a;
  --blue-hover: #0d2668;
  --ink: #182239;
  --muted: #526078;
  --edge: #cbd3df;
  --quiet: #eef2f9;
  --paper: #fff;
  --danger: #a22b25;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--quiet);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--blue); background: #d9e5ff; }
body { margin: 0; min-inline-size: 280px; }
.sign-in {
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 45%) minmax(360px, 55%);
  margin-inline: auto;
  background: var(--paper);
}
.brand {
  display: grid;
  place-items: center;
  background: var(--quiet);
  padding: 48px;
}
.brand img { display: block; inline-size: min(100%, 290px); block-size: auto; }
.credentials {
  align-self: center;
  inline-size: min(100%, 488px);
  justify-self: center;
  padding: 58px 54px 68px;
}
.credentials h1 {
  margin: 0 0 24px;
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: .012em;
  font-weight: 650;
}
.login-method {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 25px;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
.login-method button {
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-block-size: 44px;
  padding: 0 2px 4px;
  color: var(--muted);
  background: none;
  white-space: nowrap;
}
.login-method button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); font-weight: 650; }
.login-method button:hover, a:hover { color: var(--blue-hover); }
.field + .field { margin-top: 17px; }
.field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 550; }
input {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 46px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--ink);
  caret-color: var(--blue);
  background: var(--paper);
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible { outline-offset: 0; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.input-row button {
  min-inline-size: 112px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding-inline: 10px;
  color: var(--blue);
  background: var(--paper);
  font-size: 14px;
  white-space: nowrap;
}
.password-row button { min-inline-size: 57px; }
.input-row button:hover:not(:disabled) { background: var(--quiet); }
#notice { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
#notice.error { color: var(--danger); }
#submit {
  inline-size: 100%;
  min-block-size: 46px;
  margin-top: 25px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--paper);
  background: var(--blue);
  font-weight: 650;
}
#submit:hover:not(:disabled) { background: var(--blue-hover); }
#login-help {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-top: 6px;
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 14px;
}
@media (min-width: 1200px) {
  .sign-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .sign-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 30px 24px; background: var(--paper); border-bottom: 1px solid #e2e7f0; }
  .brand img { inline-size: 150px; }
  .credentials { align-self: start; padding: 31px clamp(20px, 6vw, 42px) 45px; }
  .credentials h1 { margin-bottom: 17px; font-size: 27px; }
  .login-method { margin-bottom: 21px; }
}
