:root {
  color-scheme: light;
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --surface: #f0f0f3;
  --ink: #30343b;
  --muted: #626975;
  --action: #1967d2;
  --shadow: #d0d3db;
  --light: #fff;
  --raised: 8px 8px 16px var(--shadow), -8px -8px 16px var(--light);
  --shallow: 4px 4px 8px var(--shadow), -4px -4px 8px var(--light);
  --inset: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
  font-family:
    "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 40px 64px 28px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.wordmark span {
  color: var(--google-blue);
}
.masthead-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
main {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 68px 0 80px;
  text-align: center;
}
.seal {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  box-shadow: var(--raised);
  margin-bottom: 42px;
}
.seal-inner {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  box-shadow:
    inset 3px 3px 6px var(--shadow),
    inset -3px -3px 6px var(--light);
}
.colors {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 5px;
}
.colors i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--google-blue);
}
.colors i:nth-child(2) {
  background: var(--google-red);
}
.colors i:nth-child(3) {
  background: var(--google-yellow);
}
.colors i:nth-child(4) {
  background: var(--google-green);
}
h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 350;
  line-height: 1.17;
  letter-spacing: -0.055em;
}
h1 span {
  display: block;
  color: var(--action);
  font-weight: 400;
}
.welcome-note {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.14em;
}
.login {
  margin-top: 52px;
  width: min(100%, 296px);
}
button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  background: var(--surface);
  box-shadow: var(--raised);
  color: var(--action);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition:
    box-shadow 300ms ease-in-out,
    color 300ms ease-in-out;
}
button:hover {
  box-shadow: var(--shallow);
  color: #174ea6;
}
button:active {
  box-shadow: var(--inset);
}
button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 6px;
}
button svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-note {
  margin: 21px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.status {
  max-width: 320px;
  min-height: 20px;
  margin: 16px 0 -36px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
button:disabled {
  color: var(--muted);
  cursor: wait;
  box-shadow: var(--shallow);
}
button[aria-busy="true"] svg {
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
dialog {
  width: min(420px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  padding: 32px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--raised);
}
dialog::backdrop {
  background: rgb(48 52 59 / 0.3);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.close-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 24px;
  border-radius: 12px;
  box-shadow: var(--shallow);
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
dialog label {
  display: block;
  margin: 28px 0 12px;
  font-size: 13px;
}
dialog input {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--inset);
  font: inherit;
  transition: box-shadow 300ms ease-in-out;
}
dialog input:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 4px;
  box-shadow:
    inset 2px 2px 4px var(--shadow),
    inset -2px -2px 4px var(--light);
}
dialog button[type="submit"] {
  margin-top: 28px;
}
.dialog-status {
  min-height: 24px;
  margin: 20px 0 0;
}
.error-page {
  grid-template-rows: 1fr;
}
.home h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.home a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  color: var(--action);
  text-underline-offset: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}
footer p {
  margin: 0;
}
.footer-line {
  width: 34px;
  height: 4px;
  border-radius: 6px;
  box-shadow:
    inset 2px 2px 3px var(--shadow),
    inset -2px -2px 3px var(--light);
}
@media (max-width: 600px) {
  body {
    padding: 28px 24px 24px;
  }
  .wordmark {
    font-size: 20px;
  }
  .masthead-note {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  main {
    padding: 64px 0 70px;
  }
  .seal {
    width: 72px;
    height: 72px;
    margin-bottom: 36px;
    box-shadow: var(--shallow);
  }
  h1 {
    font-size: clamp(36px, 9.5vw, 54px);
  }
  .welcome-note {
    margin-top: 23px;
    font-size: 12px;
  }
  .login {
    margin-top: 42px;
    width: min(100%, 280px);
  }
  button {
    box-shadow: var(--shallow);
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  dialog input {
    transition: none;
  }
}
@media (forced-colors: active) {
  button {
    border: 1px solid ButtonText;
  }
}
