:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #646a73;
  --border: #e5e6eb;
  --feishu: #3370ff;
  --lark-bg: #00d6b9;
  --lark-text: #053b35;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.card {
  width: min(420px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 8px 28px rgba(31, 35, 41, 0.06);
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

h2 {
  margin: 24px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

p {
  margin: 10px 0 0;
}

.brand .tagline {
  color: var(--muted);
  font-size: 14px;
}

.lead {
  font-size: 15px;
}

.hint,
.footer {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible,
.languages a:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--feishu);
  outline-offset: 2px;
}

.button-feishu {
  background: var(--feishu);
  color: #ffffff;
}

.button-lark {
  background: var(--lark-bg);
  color: var(--lark-text);
}

.button-neutral {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.company-form {
  margin: 0 0 10px;
}

.remember {
  margin: 18px 0 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfbfc;
}

.remember .link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--feishu);
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  font-size: 13px;
}

.languages a {
  color: var(--muted);
  text-decoration: none;
}

.languages a[aria-current='true'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

@media (max-width: 360px) {
  .card {
    padding: 22px 16px;
  }

  h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
