:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eeeeec;
  background: #111110;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login {
  width: min(100%, 400px);
}

.login-card {
  padding: 40px 28px;
  border: 1px solid #2c2c29;
  border-radius: 18px;
  background: #1b1b18;
  box-shadow: 0 16px 48px #0000001a;
}

h1 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.04em;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid #9cc9ef;
  outline-offset: 4px;
}

.google-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1f1f1f;
  background: #f2f2f2;
  font-family: "Google Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.google-button:hover {
  background: #dedede;
}

.google-button img {
  position: absolute;
  left: 16px;
}

.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #73736c;
  font-size: 13px;
}

.language-switch button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  color: #a6a69d;
  background: transparent;
}

.language-switch button:hover,
.language-switch button[aria-pressed="true"] {
  color: #eeeeec;
}

.language-switch button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.messages,
.unavailable {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: #c5c5ba;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.unavailable {
  margin-bottom: 0;
}
