/* ==========================================================================
   login.css —— 登录页 / 首次设置密码
   --------------------------------------------------------------------------
   登录页与首次设置密码页的唯一页面样式（toast.css 除外）。
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: inherit;
  background: #F6F6F3;
  color: #444;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
p {
  margin: 0;
}

button,
input {
  margin: 0;
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: 0 solid #D9D9D6;
}

button {
  border-radius: 3px;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid #444;
  outline-offset: 1px;
}

.page {
  padding: 0 1rem;
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ 卡片 */

.card {
  width: 100%;
  padding: 24px;
  border-radius: 3px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* 卡片与其下方操作行的统一宽度容器 */
.card-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
}

/* -------------------------------------------------------------------- 表单 */

.stack > * + * {
  margin-top: 1rem;
}

.page-title {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
}

.page-site-name {
  color: #888;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: #666;
}

.field-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #D9D9D6;
  border-radius: 3px;
  background-color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #444;
  outline: none;
}

.field-input:focus {
  border-color: #777B77;
}

/* -------------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn--primary {
  width: 100%;
  background-color: #286a8b;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #1D5069;
}

.btn--primary:active {
  background-color: #173F54;
}

.btn--link {
  display: flex;
  width: 100%;
  text-align: center;
  color: #286a8b;
}

.btn--link:hover {
  color: #1D5069;
}

/* ------------------------------------------------------------------ 其他 */

.helper-row {
  margin-top: 1rem;
  text-align: center;
}
