﻿/* =========================================================
   Auth Mono — 登录/注册，与 mono-admin 内部 UI 同步
   黑白极简 · 无渐变玻璃 · 无霓虹紫
   ========================================================= */

:root {
  --auth-bg: #141416;
  --auth-panel: #ffffff;
  --auth-input: #ffffff;
  --auth-border: #e5e7eb;
  --auth-border-strong: #d4d4d8;
  --auth-text: #18181b;
  --auth-muted: #71717a;
  --auth-muted-2: #a1a1aa;
  --auth-primary: #0a0a0a;
  --auth-primary-fg: #ffffff;
  --auth-danger: #dc2626;
  --auth-success: #16a34a;
  --auth-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.12);
  --auth-radius: 6px;
  --auth-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html,
body.auth-page {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--auth-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
}

body.auth-page {
  background: #0a0a0a url("/Background.png") no-repeat center center fixed;
  background-size: cover;
}

/* 单色遮罩：不出现蓝紫光晕 */
body.auth-page .auth-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.45) 55%, rgba(10, 10, 10, 0.72) 100%);
  z-index: 0;
  pointer-events: none;
}

body.auth-page .auth-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 5.5vw 24px 24px;
}

/* 表单卡片 = 内部面板风格 */
body.auth-page .auth-card {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 28px 24px 22px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-border);
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: authIn 0.28s ease both;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}

body.auth-page .auth-card::-webkit-scrollbar {
  width: 6px;
}
body.auth-page .auth-card::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 999px;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Brand */
body.auth-page .auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

body.auth-page .auth-brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 1px solid var(--auth-border);
  background: #f4f4f5;
  -webkit-user-drag: none;
  user-select: none;
}

body.auth-page .auth-brand h1 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--auth-text);
  line-height: 1.3;
}

body.auth-page .auth-brand p {
  margin: 0;
  font-size: 12px;
  color: var(--auth-muted);
  font-weight: 400;
}

body.auth-page .auth-divider {
  height: 1px;
  margin: 0 0 18px;
  background: var(--auth-border);
  border: 0;
}

/* Form */
body.auth-page .form-group {
  margin-bottom: 14px;
}

body.auth-page .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-text);
}

body.auth-page .input-wrap {
  position: relative;
}

body.auth-page .input-wrap .icon,
body.auth-page .input-wrap [data-lucide] {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--auth-muted);
  stroke-width: 1.75;
  pointer-events: none;
  opacity: 0.9;
}

body.auth-page .form-control {
  display: block;
  width: 100%;
  height: 38px !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: var(--auth-radius) !important;
  background: var(--auth-input) !important;
  color: var(--auth-text) !important;
  padding: 0 12px 0 36px !important;
  font-size: 14px !important;
  font-family: var(--auth-font) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  line-height: 1.2 !important;
}

body.auth-page .form-control::placeholder {
  color: var(--auth-muted-2);
  opacity: 1;
}

body.auth-page .form-control:focus {
  border-color: var(--auth-primary) !important;
  background: var(--auth-input) !important;
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.08) !important;
  color: var(--auth-text) !important;
}

body.auth-page .form-control:focus + .icon,
body.auth-page .input-wrap:focus-within [data-lucide] {
  color: var(--auth-text);
}

/* Meta / links */
body.auth-page .auth-meta {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
  font-size: 12px;
  color: var(--auth-muted);
}

body.auth-page .auth-meta a {
  color: var(--auth-text);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  border-bottom: 1px solid transparent;
}

body.auth-page .auth-meta a:hover {
  border-bottom-color: var(--auth-text);
}

/* Primary button = mono black */
body.auth-page .btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  border: 1px solid var(--auth-primary);
  border-radius: var(--auth-radius);
  color: var(--auth-primary-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--auth-primary);
  box-shadow: none;
  font-family: var(--auth-font);
  transition: background 0.12s ease, opacity 0.12s ease;
}

body.auth-page .btn-auth:hover {
  background: #27272a;
  border-color: #27272a;
  color: #fff;
}

body.auth-page .btn-auth:active {
  background: #000;
}

body.auth-page .btn-auth [data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}

/* Checkbox row (register) */
body.auth-page .check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 12px;
  color: var(--auth-muted);
  cursor: pointer;
  line-height: 1.4;
}

body.auth-page .check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: #0a0a0a;
  flex-shrink: 0;
  cursor: pointer;
}

/* Footer */
body.auth-page .auth-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--auth-muted-2);
}

/* Alerts */
body.auth-page .alert {
  border-radius: var(--auth-radius);
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  line-height: 1.4;
}

body.auth-page .alert-success {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
}

body.auth-page .alert-danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
}

/* Responsive */
@media (max-width: 767.98px) {
  body.auth-page .auth-shell {
    justify-content: center;
    padding: 16px;
  }
  body.auth-page .auth-card {
    max-width: 100%;
    padding: 24px 18px 18px;
  }
}

/* 禁用文本选择：标题/说明/按钮/链接；输入框仍可编辑 */
body.auth-page,
body.auth-page .auth-card,
body.auth-page .auth-brand,
body.auth-page .auth-brand h1,
body.auth-page .auth-brand p,
body.auth-page .auth-meta,
body.auth-page .auth-meta a,
body.auth-page .auth-foot,
body.auth-page .btn-auth,
body.auth-page label,
body.auth-page .check-row,
body.auth-page .check-row span,
body.auth-page .alert,
body.auth-page .auth-divider,
body.auth-page .input-wrap .icon,
body.auth-page .input-wrap [data-lucide] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.auth-page input,
body.auth-page textarea,
body.auth-page .form-control {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}
