* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-body: #0b0b0f;
  --bg-card: #13131a;
  --text-primary: #fff;
  --text-secondary: #d4d4d8;
  --text-tertiary: #a1a1aa;
  --text-muted: #52525b;
  --text-duration: #71717a;
  --border-subtle: rgba(255,255,255,0.06);
  --border-visible: rgba(255,255,255,0.08);
}
.light-theme {
  --bg-body: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1c1c1e;
  --text-secondary: #3a3a3c;
  --text-tertiary: #6c6c70;
  --text-muted: #aeaeb2;
  --text-duration: #8e8e93;
  --border-subtle: rgba(0,0,0,0.06);
  --border-visible: rgba(0,0,0,0.08);
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-secondary);
  min-height: 100vh;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-visible);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
input:focus {
  border-color: rgba(168, 85, 247, 0.4);
}
button {
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
button:hover {
  opacity: 0.9;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: #a855f7;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.tip {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.code-row {
  display: flex;
  gap: 8px;
}
.code-row input {
  flex: 1;
  margin-bottom: 0;
}
.pwd-wrap {
  position: relative;
  margin-bottom: 16px;
}
.pwd-wrap input {
  margin-bottom: 0;
  padding-right: 40px;
}
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  width: auto;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.pwd-toggle:hover {
  color: var(--text-tertiary);
  opacity: 1;
}
.settings-msg {
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.settings-msg.success {
  color: #22c55e;
  display: block;
}
.settings-msg.error {
  color: #ef4444;
  display: block;
}
.forgot-msg {
  font-size: 13px;
  margin-bottom: 8px;
  display: none;
}
.forgot-msg.success {
  color: #22c55e;
  display: block;
}
.forgot-msg.error {
  color: #ef4444;
  display: block;
}
.loading-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.3); backdrop-filter:blur(2px); z-index:9999; align-items:center; justify-content:center; }
.loading-overlay.show { display:flex; }
.loading-spinner { width:36px; height:36px; border:3px solid var(--border-visible); border-top-color:var(--purple); border-radius:50%; animation:spin 0.7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
