/* login.css —— 账号登录 / 授权验证卡片（v4：苗条轻盈版） */

.login-wrap {
  flex: 1;
  min-height: min(100vh, 760px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 18px;
}

.login-footer {
  margin-top: auto;
  padding: 16px 18px 20px;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-card {
  position: relative;
  background: #fff;
  width: 100%; max-width: 372px;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 30px 24px; text-align: center;
  box-shadow: 0 14px 40px rgba(31,30,29,.10);
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
  overflow: hidden;
}

.login-card.admin-denied-card {
  max-width: 470px;
  padding-left: 42px;
  padding-right: 42px;
}
/* 顶部一道细暖色线 */
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.login-icon {
  width: 52px; height: 52px; margin: 2px auto 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7e8e1, #f0d9cf);
  display: flex; align-items: center; justify-content: center;
}
.login-icon svg { width: 24px; height: 24px; }
.login-title {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px;
}
.login-sub { color: var(--ink-soft); font-size: .88rem; font-weight: 300; margin-bottom: 22px; }

/* 表单字段：紧凑、左对齐、聚焦细光晕 */
.field {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: .96rem; text-align: left; letter-spacing: 0;
  color: var(--ink); box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #b3ada3; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(204,120,92,.12); }
.field:read-only { background: var(--bg-warm); color: var(--ink-soft); }

/* 授权验证页：密钥框居中 */
.field.key { text-align: center; letter-spacing: 2px; font-size: 1.02rem; }

#tsBox {
  display: flex; justify-content: center; align-items: center;
  margin: 2px 0 12px; min-height: 66px;
}
.ts-note {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-warm); color: var(--ink-soft);
  font-size: .84rem; line-height: 1.5;
}
.ts-error { border-color: rgba(179,97,63,.35); background: #fff7f2; color: #b3613f; }

.submit {
  width: 100%; justify-content: center; margin-top: 4px;
  padding: 12px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 3px;
  box-shadow: 0 6px 16px rgba(204,120,92,.24);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(204,120,92,.30); }
.submit:active { transform: translateY(0); }
.submit:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

.status { font-size: .88rem; min-height: 1.2em; margin-top: 12px; line-height: 1.5; }

/* 开关关闭等提示块 */
.notice {
  margin: 4px 0; padding: 14px 16px;
  border: 1px dashed var(--line); border-radius: 10px;
  background: var(--bg-warm); color: var(--ink-soft);
  font-size: .9rem; line-height: 1.6;
}

.account-panel {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
  text-align: left;
}

.account-panel span {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(250,249,245,.96), rgba(245,243,236,.92));
  color: var(--ink-soft);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.account-panel b {
  color: var(--ink-soft);
  font-weight: 500;
}

.account-panel em {
  color: var(--ink);
  font-style: normal;
  overflow-wrap: anywhere;
}

.login-links {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-soft);
}
.login-links a { color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
.login-links a:hover { color: var(--accent); }
.login-links .sep { margin: 0 10px; color: var(--line); }

@media (max-width: 480px) {
  .login-card { padding: 32px 24px 24px; border-radius: 16px; }
  .login-card.admin-denied-card { padding-left: 24px; padding-right: 24px; }
}
