/* ==========================================================================
   登录/注册页样式（LoginView.vue + RegisterView.vue scoped 样式静态化）
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: #111118;
  border: 1px solid #23233a;
  border-radius: 16px;
  padding: 40px;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo { display: inline-flex; align-items: center; margin-bottom: 24px; }
.auth-header .logo-img { height: 40px; width: auto; }
.auth-header h1 { font-size: 24px; font-weight: 700; color: #e8e8ed; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: #8b8b9e; }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: #0a0a0f;
  border-radius: 8px;
  padding: 4px;
}
.auth-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #8b8b9e;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.auth-tabs button.active { background: #23233a; color: #e8e8ed; }

.alert { padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert[hidden] { display: none; }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-success { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form[hidden] { display: none; }
/* 注册页表单项更多，间距略收紧（RegisterView gap:18px） */
.auth-form.register { gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group[hidden] { display: none; }
.form-group label { font-size: 14px; font-weight: 500; color: #e8e8ed; }
.form-group input {
  padding: 12px 14px;
  background: #0a0a0f;
  border: 1px solid #23233a;
  border-radius: 8px;
  color: #e8e8ed;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: #6366f1; }
.form-group input::placeholder { color: #5c5c72; }

.code-input-group { display: flex; gap: 8px; }
.code-input-group input {
  flex: 1;
  padding: 12px 14px;
  background: #0a0a0f;
  border: 1px solid #23233a;
  border-radius: 8px;
  color: #e8e8ed;
  font-size: 14px;
  outline: none;
}
.code-input-group input:focus { border-color: #6366f1; }

.btn-code {
  padding: 0 16px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-code:hover:not(:disabled) { background: #818cf8; }
.btn-code:disabled { background: #23233a; color: #5c5c72; cursor: not-allowed; }

.btn-submit {
  padding: 12px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-form.register .btn-submit { margin-top: 4px; }
.btn-submit:hover:not(:disabled) { background: #818cf8; box-shadow: 0 0 20px rgba(99, 102, 241, 0.15); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: #8b8b9e; }
.auth-footer a { color: #6366f1; font-weight: 500; margin-left: 4px; }
.auth-footer a:hover { color: #818cf8; }

.promo-banner {
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #818cf8;
  text-align: center;
}
.promo-banner[hidden] { display: none; }

.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #8b8b9e;
  cursor: pointer;
  user-select: none;
}
/* 注册页协议行紧随表单流不额外加顶距 */
.auth-form.register .agreement-row { margin-top: 0; }
.agreement-row input { margin-top: 5px; flex-shrink: 0; }
.agreement-row a { color: #a5a6c9; text-decoration: none; }
.agreement-row a:hover { color: #818cf8; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8b8b9e;
  cursor: pointer;
  user-select: none;
  margin: 4px 0;
}
