* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: #f5f6f8; color: #1f2937; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 18px; }
.card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 26px 22px 22px; box-shadow: 0 10px 40px rgba(15, 23, 42, .08); }
h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.msg { min-height: 18px; font-size: 13px; margin: 4px 0 10px; color: #dc2626; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; border: 0; background: #f1f5f9; color: #475569; padding: 10px 8px; border-radius: 9px; font-size: 14px; }
.tab.active { background: #0f172a; color: #fff; }
.pane { display: flex; flex-direction: column; gap: 10px; }
.hide { display: none; }
.input { width: 100%; border: 1px solid #dbe3ee; border-radius: 9px; padding: 12px 13px; font-size: 15px; outline: none; background: #fff; }
.input:focus { border-color: #0f172a; }
.row { display: flex; gap: 8px; align-items: center; }
.row .input { flex: 1; }
.primary { width: 100%; border: 0; border-radius: 9px; padding: 12px; background: #0f172a; color: #fff; font-size: 15px; }
.primary:disabled, .ghost:disabled { opacity: .55; }
.ghost { border: 1px solid #dbe3ee; background: #fff; color: #334155; border-radius: 9px; padding: 11px 12px; white-space: nowrap; font-size: 13px; }
.hint { color: #94a3b8; font-size: 12px; text-align: center; margin: 2px 0 0; }
.links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.links a, .linkbtn { color: #2563eb; text-decoration: none; background: none; border: 0; padding: 0; font-size: 13px; }
.linkbtn { align-self: flex-start; }
