/* 登录页：浅色可读（输入框不用深色底） */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(15, 23, 42, 0.06), transparent),
    #e8eef5;
  color: #0f172a;
}

.auth-card {
  width: min(400px, 92vw);
  padding: 36px 32px 32px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.auth-brand {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-sub {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.9rem;
}

.auth-form .field-label {
  display: block;
  margin: 12px 0 6px;
  color: #334155;
  font-weight: 600;
}

.auth-input,
.auth-form input.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.95rem;
  caret-color: #2563eb;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 浏览器自动填充也会盖掉深色，强制保持浅底深字 */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 99999s ease-out;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
  padding: 10px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  background: #1d4ed8;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-error {
  margin: 12px 0 0;
  color: #dc2626;
  font-size: 0.85rem;
}

.admin-body {
  overflow: auto;
  height: auto;
  min-height: 100vh;
  display: block;
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-panel {
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 20px;
}

.admin-panel h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-head h2 { margin: 0; }

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-form .input {
  min-width: 140px;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: #0b0f19;
  color: var(--app-text);
}

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--app-border);
  vertical-align: middle;
}

.admin-table th {
  color: var(--app-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--app-muted);
  white-space: nowrap;
}

.app-user-chip strong {
  color: var(--app-text);
  font-weight: 600;
}
