:root {
  color-scheme: light;
  --page: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #d8dde4;
  --button: #1a73e8;
  --button-hover: #1558b0;
  --focus: #7aa7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}

main {
  width: min(100%, 360px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgb(31 41 51 / 10%);
}

.locale-form {
  margin: 0 0 20px;
}

.locale-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.locale-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.subtitle {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background: var(--button);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.login-button:hover {
  background: var(--button-hover);
}

.login-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.google-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #1f2933;
  font-weight: 700;
  line-height: 1;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
}

.email-login-form {
  display: grid;
  gap: 12px;
}

.auth-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.email-login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.email-login-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.notice,
.error {
  margin: 0 0 16px;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.notice {
  border: 1px solid #b7dfc1;
  background: #effaf2;
  color: #1f6f3a;
}

.error {
  border: 1px solid #f1b7b7;
  background: #fff1f1;
  color: #9b1c1c;
}

.secondary-link {
  color: var(--button);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.secondary-link:hover {
  color: var(--button-hover);
}
