/* Login page: one centered card on the paper background, reusing the app's
   tokens and form conventions. The login page keeps the first, green look:
   its own values for the theme's names (theme.css is not loaded here). */
:root {
  --bg: #f5f5f0;
  --surface: #fffefa;
  --label: #283f34;
  --label-3: #6f786f;
  --separator: #dce1d7;
  --accent: #355842;
  --label-inverse: #fff;
}
.login-stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 18px;
}
.login-back {
  align-self: center;
  color: var(--label-3);
  font-size: 13px;
  text-decoration: none;
}
.login-back:hover { color: var(--label); }
.login-card {
  width: 340px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 34px 30px 24px;
  box-shadow: 0 24px 100px #17271726;
  margin: 0;
}
.login-card .eyebrow {
  text-align: center;
  margin: 14px 0 0;
}
.login-title {
  font-family: 'Songti SC', STSong, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 6px 0 0;
  text-align: center;
}
.login-copy {
  color: var(--label-3);
  font-size: 14px;
  line-height: 1.9;
  margin: 14px 0 4px;
  text-align: center;
}
.login-card .field {
  margin-top: 16px;
}
.login-card input {
  display: block;
  border: 1px solid var(--separator);
  background: #fff;
  color: var(--label);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 6px;
  width: 100%;
  font-size: 14px;
}
.login-card input:focus {
  outline: 2px solid #a0b595;
  outline-offset: 1px;
}
.login-card input::placeholder {
  color: #959d93;
}
.login-hint {
  font-size: 11px;
  color: var(--label-3);
  margin: 8px 0 0;
}
.login-card .error {
  margin-top: 16px;
}
.login-submit {
  width: 100%;
  margin-top: 22px;
  font-size: 14px;
}
.login-switch {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
  color: var(--label-3);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.oauth-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid var(--separator);
  border-radius: 8px;
  color: var(--label);
  font-size: 14px;
  text-decoration: none;
}
.oauth-login:hover { background: #f0f5f9; }
.oauth-login:focus-visible { outline: 2px solid #3399e6; outline-offset: 3px; }
.oauth-login[hidden] { display: none; }
.login-switch:hover {
  color: var(--label);
}
.login-foot {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--label-3);
  text-align: center;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--separator);
}
.login-footer {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 0;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0;
}
