:root {
  --brand: #2681ff;
  --brand-dark: #1a6dff;
  --brand-grad: linear-gradient(135deg, #2b6fff 0%, #2bb7ff 100%);
  --brand-grad-d: linear-gradient(150deg, #1f5fe0 0%, #2bb7ff 90%);
  --bg: #f4f6fb;
  --text: #1c2026;
  --muted: #8a9099;
  --danger: #f5475b;
  --ok: #18b566;
  --panel: #2b2d31;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
}
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input { font-family: inherit; outline: none; -webkit-user-select: text; user-select: text; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }

/* ============ AUTH (split screen) ============ */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-visual {
  flex: 1.05; background: var(--brand-grad-d); color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 60px;
}
.auth-visual::before, .auth-visual::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.auth-visual::before { width: 420px; height: 420px; top: -120px; right: -120px; }
.auth-visual::after { width: 300px; height: 300px; bottom: -100px; left: -80px; background: rgba(255,255,255,.06); }
.auth-visual .vbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; position: relative; }
.auth-visual .vbrand .dot { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.auth-visual .vbrand .dot svg { width: 24px; height: 24px; fill: #fff; }
.auth-visual .vbrand b { font-size: 24px; letter-spacing: .5px; }
.auth-visual h1 { font-size: 40px; line-height: 1.25; letter-spacing: -1px; position: relative; margin-bottom: 18px; }
.auth-visual p { font-size: 16px; opacity: .9; max-width: 420px; position: relative; line-height: 1.7; }
.auth-visual .vfeats { display: flex; gap: 22px; margin-top: 38px; position: relative; }
.auth-visual .vfeat { font-size: 13px; opacity: .92; display: flex; align-items: center; gap: 7px; }
.auth-visual .vfeat svg { width: 17px; height: 17px; fill: #fff; }

.auth-form-side { width: 460px; display: flex; align-items: center; justify-content: center; padding: 30px 40px; background: #fff; overflow-y: auto; max-height: 100vh; }
.auth-card { width: 340px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
/* password field with show/hide toggle */
.pwd-wrap { position: relative; }
.pwd-wrap input { width: 100%; padding: 12px 42px 12px 14px; border: 1.5px solid #e8eaed; border-radius: 10px; font-size: 14.5px; background: #fafbfc; transition: border-color .15s, box-shadow .15s; }
.pwd-wrap input:focus { border-color: var(--brand); background:#fff; box-shadow: 0 0 0 3px rgba(38,129,255,.12); }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; cursor: pointer; opacity: .5; padding: 6px; }
.pwd-eye:hover, .pwd-eye.on { opacity: 1; }
/* verification-code row */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #e8eaed; border-radius: 10px; font-size: 14.5px; background: #fafbfc; letter-spacing: 3px; }
.code-row input:focus { border-color: var(--brand); background:#fff; box-shadow: 0 0 0 3px rgba(38,129,255,.12); }
.btn-code { flex: 0 0 auto; padding: 0 14px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-code:hover:not(:disabled) { background: #f2f7ff; }
.btn-code:disabled { border-color: #d7dae0; color: #aab1bb; cursor: not-allowed; }
/* inline field validation hints */
.hint { display: block; font-size: 12px; margin-top: 5px; min-height: 15px; line-height: 1.3; }
.hint.ok { color: #18b566; }
.hint.bad { color: #f5475b; }
.hint.checking { color: #8a9099; }
/* email spam-folder tip */
.mail-tip { font-size: 12px; line-height: 1.5; color: #5b6b8c; background: #f0f5ff; border: 1px solid #dbe6fb; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.mail-tip.sent { color: #157a47; background: #eafaf1; border-color: #b6ecca; }
.mail-tip b { color: inherit; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13px; color: #4e5969; margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e8eaed; border-radius: 10px; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s; background: #fafbfc;
}
.field input:focus { border-color: var(--brand); background:#fff; box-shadow: 0 0 0 3px rgba(38,129,255,.12); }
.btn-primary {
  width: 100%; padding: 13px; background: var(--brand); color: #fff; border-radius: 10px;
  font-size: 15px; font-weight: 500; transition: .16s; margin-top: 4px;
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(38,129,255,.32); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; box-shadow:none; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.err-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ============ HOME (app dashboard) ============ */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home-top {
  height: 58px; background:#fff; border-bottom: 1px solid #edeff2;
  display:flex; align-items:center; padding: 0 26px; gap: 14px;
}
.brand-logo { display:flex; align-items:center; gap: 10px; }
.brand-logo .dot { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-grad); display:flex; align-items:center; justify-content:center; }
.brand-logo .dot svg { width: 18px; height: 18px; fill: #fff; }
.brand-logo b { font-size: 18px; letter-spacing: .3px; }
.home-top .spacer { flex: 1; }
.user-chip { display:flex; align-items:center; gap: 10px; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; }
.link-btn { background: none; color: var(--muted); font-size: 13px; padding:6px 10px; border-radius:7px; }
.link-btn:hover { color: var(--brand); background:#f2f5fb; }

.home-body { flex: 1; display:flex; flex-direction: column; align-items:center; justify-content:center; gap: 36px; padding: 30px; }
.greeting { text-align:center; }
.greeting h1 { font-size: 30px; letter-spacing: -.5px; margin-bottom: 6px; }
.greeting p { color: var(--muted); font-size: 15px; }
.actions { display:flex; gap: 20px; flex-wrap: wrap; justify-content:center; }
.action-card {
  width: 168px; height: 158px; background:#fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(20,40,90,.06);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 14px;
  transition: transform .14s, box-shadow .14s; border: 1px solid #eef1f5; padding: 10px;
}
.action-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,40,90,.13); border-color:#dbe6fb; }
.action-card .ico { width: 58px; height: 58px; border-radius: 16px; display:flex; align-items:center; justify-content:center; }
.action-card .ico svg { width: 30px; height: 30px; fill:#fff; }
.action-card.join .ico { background: linear-gradient(135deg,#13c2c2,#36cfc9); }
.action-card.quick .ico { background: linear-gradient(135deg,#ff7a45,#ffa940); }
.action-card.book .ico { background: linear-gradient(135deg,#2f54eb,#597ef7); }
.action-card .t { font-size: 16px; font-weight: 500; }
.action-card .d { font-size: 12px; color: var(--muted); }

/* modal */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index: 50; backdrop-filter: blur(2px); }
.modal { background:#fff; border-radius: 16px; padding: 30px; width: 380px; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.modal h3 { margin-bottom: 20px; font-size: 19px; }
.modal .field input { font-size: 18px; letter-spacing: 2px; text-align:center; }
.modal .field input.name-in { font-size: 14px; letter-spacing: normal; text-align:left; }
.modal-actions { display:flex; gap: 12px; margin-top: 12px; }
.btn-ghost { flex:1; padding: 12px; border-radius: 10px; background:#f2f3f5; color:#4e5969; font-weight:500; }
.btn-ghost:hover { background:#e9eb0; background:#e8eaed; }
.modal-actions .btn-primary { flex: 1; width:auto; margin:0; }

@media (max-width: 820px) { .auth-visual { display:none; } .auth-form-side { width: 100%; } }

/* 进入/创建会议加载浮层 */
.enter-loading { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; background:rgba(16,17,20,.6); }
.enter-loading.hidden { display:none !important; }
.enter-loading .el-box { display:flex; flex-direction:column; align-items:center; gap:15px; background:#23252b; padding:30px 42px; border-radius:14px; box-shadow:0 16px 50px rgba(0,0,0,.45); color:#e9eaed; }
.enter-loading .el-spinner { width:42px; height:42px; border:4px solid rgba(255,255,255,.16); border-top-color:#2681ff; border-radius:50%; animation:el-spin .8s linear infinite; }
@keyframes el-spin { to { transform:rotate(360deg); } }
.enter-loading .el-title { font-size:15px; font-weight:600; }
.enter-loading .el-id { font-size:13px; color:#9aa0a6; font-variant-numeric:tabular-nums; letter-spacing:.5px; }
